Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At least in Ruby, you can only do string interpolation with strings in double quotes.


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.


Interesting they chose that, considering it's deprecated in bash and python.


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.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: