News for hackers. Stuff that matters.
Re:Java String Interpolation final in Java 23 by masklinn on Saturday January 13, 2024 @09:55AM (#38980479)
> The new syntax here is what's to the right of the `.`; what's to the left is old syntax.

Absolutely nothing precluded extending the new syntax to swallowing / obviating the `.`.

Re:Java String Interpolation final in Java 23 by pron on Saturday January 13, 2024 @10:51AM (#38981018)
True, but nothing necessitated it, either. New features are tested by users for a while (and this one has even been a preview feature in a released JDK for some time), and the people who have actually used the feature didn't report that typing `.` was a problem to them. If further experience shows otherwise, then we could allow dropping the dot.

In other words, security vulnerabilities due to string manipulation are a real and pretty serious problem that this feature aims to solve (or, at least alleviate). If the dot character also proves to be a real problem, which it hasn't yet, then that could be solved later.