RFR: CSR JDK-8233117 Escape Sequences For Line Continuation and White Space (Preview)

Alex Buckley alex.buckley at oracle.com
Tue Nov 5 18:31:20 UTC 2019


This should be answered in JEP 368, which currently introduces \s with 
its definition rather than a connecting line back to the final line of 
the Motivation. JEP 355 had text about the octal escape sequence \040 
and now Remi has raised \u0020 -- both should be positioned in 368 as 
less-clear options for explicit whitespace than a new escape sequence. 
Syntactic real estate for escape sequences is not in short supply, but 
there is an element of surprise that we're finally building there.

Alex

On 11/5/2019 10:17 AM, Remi Forax wrote:
> Hi Jim,
> the rationale to add \<newline> is well explain but why do you want to introduce \s given we already have \u0020 ?
> 
> Rémi
> 
> ----- Mail original -----
>> De: "Jim Laskey" <james.laskey at oracle.com>
>> À: "core-libs-dev" <core-libs-dev at openjdk.java.net>, "compiler-dev" <compiler-dev at openjdk.java.net>
>> Envoyé: Mardi 5 Novembre 2019 19:00:32
>> Objet: Re: RFR: CSR JDK-8233117 Escape Sequences For Line Continuation and White Space (Preview)
> 
>> Re-proposed.
>>
>>> On Nov 5, 2019, at 11:40 AM, Jim Laskey <james.laskey at oracle.com> wrote:
>>>
>>> I'm withdrawing until it is the correct format. Apologies.
>>>
>>>
>>>> On Nov 5, 2019, at 9:58 AM, Jim Laskey <james.laskey at oracle.com> wrote:
>>>>
>>>> Please review the following CSR. Provides for the introduction of two new escape
>>>> sequences \<line-terminator> and \s.  \<line-terminator> allows developers to
>>>> express unwieldy string literals in a text block as a cluster of short single
>>>> line segments. The second is to allow developers to express ASCII space, much
>>>> like \t for tab.
>>>>
>>>> Thank you.
>>>>
>>>> Cheers,
>>>>
>>>> - Jim
>>>>
>>>> CSR: https://bugs.openjdk.java.net/browse/JDK-8233117
>>>>


More information about the compiler-dev mailing list