4 ms·
Yeah, the choice of \{ to create an expression instead of printing a literal { character is an odd one when you compare how you output a double-quote character:
by lstamour 4y ago
Yeah, the choice of \{ to create an expression instead of printing a literal { character is an odd one when you compare how you output a double-quote character:
> To aid refactoring, double-quote characters can be used inside embedded expressions without escaping them as \".
I would expect for consistency that \"{expression}\" outputs an expression and \"\{expression}\" would not.
- kaba0 4y agoWhy would you have to escape ‘{‘? I don’t get your examples. The JEP meant that they can be used inside not, in-between, so: \{ “a” + “b” + 3 } could work.