Hacker News new | past | comments | ask | show | jobs | submit login

Looks great - unlike java which is somehow recommending the format:

STR."Hello \{this.user.firstname()}, how are you?\nIt's \{tempC}°C today!"

compared to scala

s"Hello ${this.user.firstname()}, how are you?\nIt's ${tempC}°C today!"

STR."" ? really?




Yeah, I hate to bikeshed, but this is the worst syntax possible without being a full-out prank.


also a syntax for braces that looks like escaping


Yeah, that almost bothers me more than "STR."


\{ is currently invalid syntax in Java, so it can be given a meaning.

${ is valid syntax (the string value "$\") so giving it a new meaning would break existing programs. That's not acceptable.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: