Java 22 / JDK 22: General Availability: https://mail.openjdk.org/pipermail/jdk-dev/2024-March/008827.html
Features: https://openjdk.org/projects/jdk/22/
Java 22 / JDK 22: General Availability: https://mail.openjdk.org/pipermail/jdk-dev/2024-March/008827.html
Features: https://openjdk.org/projects/jdk/22/
@mreinhold IMO JEP 459 doesn’t motivate why it needs to introduce a whole new syntactic kind of “template processor”. It would be a lot cleaner and more orthogonal if it just had a syntax for RAW templates and the other processors were just normal static methods of type StringTemplate -> X.
(Like, in the SQL example why would I bother writing a processor when I can just make my db.exec method take a StringTemplate directly? It’s just syntactic noise).
@neilmadden As it happens, a redesign of this feature along those lines is already in progress.
https://mail.openjdk.org/pipermail/amber-spec-experts/2024-March/004010.html
https://mail.openjdk.org/pipermail/amber-spec-experts/2024-March/004062.html