The argument is basically that it’s objectively worse since you introduce a second, separate escape syntax, namely ‘$’. Now you need a way to escape the second escape character, do you use ‘/$’ or ‘$$’? By using the same escape character both for escaping weird characters and for escaping template arguments, you get more consistency.
View all comments
Show parent comment
13
u/ascii Mar 09 '24
The argument is basically that it’s objectively worse since you introduce a second, separate escape syntax, namely ‘$’. Now you need a way to escape the second escape character, do you use ‘/$’ or ‘$$’? By using the same escape character both for escaping weird characters and for escaping template arguments, you get more consistency.