You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the initial motivation was just copying what JS does, it doesn't really seem clear to me if there's any benefit to having different syntax at all and only serves to make things more awkward (eg can't easily refactor console logs without changing the surrounding quotes).
I don't think we stand much, if anything, to lose here by assimilating the two and just requiring users to escape $ if they want that literal character.
The text was updated successfully, but these errors were encountered:
$ is not that rare in strings, I'd suggest requiring escaping either character in ${ instead, such that "this costs $50" doesn't require escaping (this is also how it works in JS so that would preserve the original semantics)
Although the initial motivation was just copying what JS does, it doesn't really seem clear to me if there's any benefit to having different syntax at all and only serves to make things more awkward (eg can't easily refactor console logs without changing the surrounding quotes).
I don't think we stand much, if anything, to lose here by assimilating the two and just requiring users to escape
$
if they want that literal character.The text was updated successfully, but these errors were encountered: