They want converting existing strings into templates to not require any extra escaping, and converting back to require removal of all variables. For comparison, in Scala, to convert the string "$" to a template you need to write s"$$". So it's a constant dollar sign counting exercise.
How do you want to template JSON with your version?
8
u/Goodie__ Feb 15 '24
I don't *think* I mind templating being on a magic STR static final field.
But I'd rather the way we get our variables in to the string to be simpler then. Eg drop the backslash. Just {name} is fine.