News for hackers. Stuff that matters.
Re:JEP 430: String Templates (Preview) Proposed to Target Ja... by zaphirplane on Friday March 03, 2023 @10:01PM (#35017714)
> STR."My name is \{name}";

What is the method call ? Agree with grandparent this looks too inconsistent for Java

STR.format(“”) would be more Java with import as Alias

Re:JEP 430: String Templates (Preview) Proposed to Target Ja... by kaba0 on Saturday March 04, 2023 @02:28AM (#35018993)

  StringTemplate t = RAW.”My name is \{name}”;
  STR.process(t)
Re:JEP 430: String Templates (Preview) Proposed to Target Ja... by zaphirplane on Monday March 06, 2023 @02:38AM (#35038431)
* * *
Re:JEP 430: String Templates (Preview) Proposed to Target Ja... by kaba0 on Monday March 06, 2023 @03:22AM (#35038695)
Yes, it is a very tiny new syntax so that templates can be distinguished from string literals (so string templates can never stand without a template processor, hence the RAW)