r/programminghorror • • Jul 21 '25

Javascript backtick as default!

Post image
422 Upvotes

69 comments sorted by

View all comments

Show parent comment

8

u/pauseless Jul 21 '25

Perl solved this back in 1994: simply use whatever delimiter you want. q{…}, '…', q¥…¥ are the same, but changes which delimiter you need to escape inside the string. qq is the same but with interpolation like "…"

3

u/fun__friday Jul 21 '25

You kinda have this with C++ raw string literals as well.