Add string interpolation to Java using back-ticks similar to ECMAScript
Ben Evans
benjamin.john.evans at gmail.com
Mon Sep 4 04:07:33 UTC 2017
Hi Behrang,
This topic and suggestion has been extensively discussed over the
course of several different Java releases.
Before suggesting discussing it again, I recommend that you use your
friendly neighbourhood search engine to read the discussion that has
occurred on previous occasions. I don't believe that the situation has
changed significantly since the last time this was discussed - but
perhaps you have a new, compelling reason that has not been thought of
during any of the previous discussions.
If you do have a good new reason, then I suggest that providing a
prototype patch to javac that implements this will be a good way to
get people interested in this again. If you have such a patch, then
compiler-dev is the place to post it.
Thanks,
Ben
On Mon, Sep 4, 2017 at 7:50 AM, Behrang Saeedzadeh <behrangsa at gmail.com> wrote:
> As back-tick is not used in Java at the moment, grammar-wise this should be
> relatively easy. And the parser can translate such strings to string concat
> or StringBuilder calls.
>
> A simple syntax sugar, but very sweet.
>
> Best regards,
> Behrang Saeedzadeh
More information about the discuss
mailing list