JDK-8227870 - Escape Sequences For Line Continuation and White Space (Preview)
John Rose
john.r.rose at oracle.com
Tue Oct 1 01:41:13 UTC 2019
On Sep 30, 2019, at 6:37 PM, Brian Goetz <brian.goetz at oracle.com> wrote:
>
> This seems to cross the line between “new escape sequence” and “bespoke string literal language..."
Nope, I disagree. It just applies the current concept “ancillary trailing space” (which did
not cross that line) to the spaces before \ at the end of the line.
When you think about the detailed mechanics of ancillary spaces before \LT, you surely note
that some tricky processing is going on, since they are stripped via a different rule than
ancillary spaces before LT. Maybe that makes the feature feel weighty to you. But users
won’t care a bit. They will just know that unescaped spaces at the end of the line are ancillary
whether or not \ is present between them and the LT. That makes the overall user model
simpler, not more complex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20190930/0d3c272e/attachment-0001.html>
More information about the amber-spec-experts
mailing list