4 ms·
> 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 impor
by zaphirplane 4y ago
> 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
- kaba0 4y agoStringTemplate t = RAW.”My name is \{name}”; STR.process(t)
- zaphirplane 4y agoThat’s special magic if I recall my Java syntax correctly System.out.print.”hello” isn’t a thing
- kaba0 4y agoYes, 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)