Remix.run Logo
dionian 3 months ago

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?

paulddraper 3 months ago | parent | next [-]

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

nsonha 3 months ago | parent | prev [-]

also a syntax for braces that looks like escaping

dionian 3 months ago | parent [-]

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

Symbiote 3 months ago | parent [-]

\{ 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.