Targeting JEP 326: Raw String Literal for JDK 12

Guy Steele guy.steele at oracle.com
Thu Jul 5 20:37:35 UTC 2018


> On Jul 5, 2018, at 4:11 PM, Jim Laskey <james.laskey at oracle.com> wrote:
> 
> With your guidance, we consider the Raw String Literal design and initial implementation has stabilized enough to target JEP 326 as a Preview Language Feature in JDK 12. Before we proceed, we’d like review some of recommendations made since JEP 326 was proposed as Candidate.
> . . .


A warning: not all of the given “Output” examples have exactly the correct number of leading spaces on all lines.  In the example for “align()”, for example, what is shown is:

Example:

       String html = `
                          <html>
                              <body>
                                  <p>Hello World.</p>
                              </body>
                          </html>
                     `.align();
       System.out.print(html);

Output:
<html>
   <body>
       <p>Hello World.&</p>
   </body>
</html>

but I believe the correct output would be:

Output:
<html>
    <body>
        <p>Hello World.&</p>
    </body>
</html>

That is, each of the middle three lines of output needed to have an additional leading space character.

Otherwise everything in the email looked okay to me.

—Gy



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20180705/64e82a4a/attachment.html>


More information about the amber-spec-experts mailing list