RFR: JDK-8198986 - 3.10.7: Raw string literals
Stephen Colebourne
scolebourne at joda.org
Wed Mar 14 18:02:34 UTC 2018
On 13 March 2018 at 23:36, Stephen Colebourne <scolebourne at joda.org> wrote:
> On 13 March 2018 at 23:10, John Rose <john.r.rose at oracle.com> wrote:
>> While you say you would prefer to hunt through
>> the body of the string looking for doubled backticks,
>
> No, I expect my IDE to double the backticks when I paste. In the
> unlikely event that there are backticks.
For the record, I'd also find a syntax with a fixed number of
backticks/quotes and no escaping preferable to the unlimited backticks
of the Oracle proposal.
`````` = "" (empty)
``````` = "`" (single backtick)
````AAA```` = "`AAA`" (AAA surrounded by backticks)
While there is the very rare scenario it can't cope with, it is far
less puzzler strewn.
Stephen
More information about the amber-dev
mailing list