Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Support for String Template Syntax #14805

Open
nrmancuso opened this issue Apr 17, 2024 · 0 comments
Open

Remove Support for String Template Syntax #14805

nrmancuso opened this issue Apr 17, 2024 · 0 comments
Labels

Comments

@nrmancuso
Copy link
Member

nrmancuso commented Apr 17, 2024

We always take a risk supporting preview features, and try to wait until second/third/final preview to add support for new syntax, to improve the chance that a given feature will become a part of the language permanently. Of course, this is also driven by user demand.

Unfortunately, String Templates have been completely removed from JDK 23 (they are not even a preview feature). Since we have really only begun to implement them (text block templates are not supported, and no checks have really been updated), it is better to remove support completely now, than to end up supporting syntax that is not valid and updating a bunch of checks to only have to rewrite the grammar, build the AST, and update the checks all over again once the syntax is finalized.

Enabling us to start with a clear slate when the new syntax is revealed will help us to deliver support much faster.

It is doubtful that whatever the new (post JDK 23) String Template syntax will look the same, so we will have to break compatibility with the JDK 22 String Template syntax regardless.

From https://mail.openjdk.org/pipermail/amber-spec-experts/2024-April/004106.html:

So, to be clear: there will be no string template feature, even with --enable-preview, in JDK 23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants