Y
Hacker News
new
|
ask
|
show
|
jobs
by
_jnc
4010 days ago
At least in Ruby, you can only do string interpolation with strings in double quotes.
2 comments
elisee
4010 days ago
JavaScript up to ES5 doesn't support string interpolation at all. ES6 introduces backticks `before${var}after` for that, but there's still no functional difference between single and double quotes.
link
mixmastamyk
4010 days ago
Interesting they chose that, considering it's deprecated in bash and python.
link
sprobertson
4010 days ago
Coffeescript as well. I try to use single quotes whenever possible, so if a string is templated it stands out a bit with the double quotes.
link