Whereas \u0020 is just another way of expressing space, it also gets consumed 
by trailing space stripping. Maybe you meant to say we already have \040, which 
I would reply that you might have the ASCII table memorized but many do not. \s 
also has brevity on its side.


String colors = """
    red    \040
    green  \040
    blue   \040
    """;

verses

String colors = """
    red    \s
    green  \s
    blue   \s
    """;
 
Cheers,

-- Jim


> On Nov 5, 2019, at 2:17 PM, Remi Forax <fo...@univ-mlv.fr> 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.las...@oracle.com>
>> À: "core-libs-dev" <core-libs-dev@openjdk.java.net>, "compiler-dev" 
>> <compiler-...@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.las...@oracle.com> wrote:
>>> 
>>> I'm withdrawing until it is the correct format. Apologies.
>>> 
>>> 
>>>> On Nov 5, 2019, at 9:58 AM, Jim Laskey <james.las...@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
>>>> 

Reply via email to