Re:Java String Interpolation final in Java 23
by turboponyy on Saturday January 13, 2024 @09:13AM
(#38980061)
The backslash is unsightly, I agree. Codifying template expression evaluators as a core part of the language, however, is a rational choice. Java is surprisingly foresightful in this regard - it means idioms in the language itself can guide people to getting the common use case of interpolating stuff correct. "STR" for the most prevalent case is perhaps a bit verbose, but at least it's explicit.
[ Parent
| on HN ]
There are no comments on this comment yet.