String concatenation tweaks

Aleksey Shipilev aleksey.shipilev at oracle.com
Thu Jun 4 17:13:30 UTC 2015


On 06/04/2015 04:59 PM, Ali Ebrahimi wrote:
> Please add String Interpolation and Multi-line String: in that case we
> would have better answer for problem.

Neither String interpolation nor multi-line Strings are supported by
current Java language, so throwing these in mix promotes the issue into
extending the language. Not fun.

In addition, Multi-line Strings is purely a syntax issue, not the
bytecode interface one, and so it seems rather unrelated.

Is String interpolation thought as the syntactic sugar for string
concatenation? If so, then the proposed bytecode interface is enough to
cover this case as well, should that lang feature ever arrive.

Thanks,
-Aleksey



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20150604/91048720/signature-0001.asc>


More information about the compiler-dev mailing list