Raw strings starting/ending with backtick (original) (raw)
Attila Kelemen attila.kelemen85 at gmail.com
Sat Nov 24 12:55:01 UTC 2018
- Previous message: switch expression without value
- Next message: Raw strings starting/ending with backtick
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Reading the JEP on raw string literals, I saw no mentions of the case when a string starts (or ends) with backtick. I guessed, that maybe the compiler will close the literal when it finds more than half the number of backticks than the beginning (nothing implied this behaviour just tried it and I know that it might be very suprising in other cases). I have tried with the latest early access compiler and (not too suprisingly) it didn't behave this way and simply failed when starting the literal with a backtick.
My question is, of course: What is the strategy for this case? Or is it explicitly ignored as too much of an edge case (and left to the developer to deal with)?
Thanks, Attila Kelemen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20181124/c0df4ed8/attachment.html>
- Previous message: switch expression without value
- Next message: Raw strings starting/ending with backtick
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]