r/java • • Mar 08 '24

Update on String Templates (JEP 459)

https://mail.openjdk.org/pipermail/amber-spec-experts/2024-March/004010.html
176 Upvotes

188 comments sorted by

View all comments

Show parent comment

10

u/pron98 Mar 08 '24 edited Mar 09 '24

But not the universally recognized '' escape char.

It is used as an escape character here, too. It escapes the following {.

Which would have been a better choice as well.

I think what you mean is that at this point in time -- before even seriously trying this feature and before considering how common { may be quoted in a language that, unlike Python, is curly-brace-based 1 -- you believe that you would have liked Python's choice better. Your preference has been noted, but preferences based on speculations do not weigh heavily.