Hacker News new | past | comments | ask | show | jobs | submit login

Same here, in both JavaScript and Ruby. I guess single quotes are easier to type on standard keyboard setups, but I have never been a fan for some reason.



In Ruby, at least, there's a functional difference. Using single-quotes is a good way to indicate that a thing is just a string and not a template.


That's true. There's also the subtler functional difference in both languages that single quote strings can have unescaped double quotation marks in them and vice versa.


Ha, that's a good point.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: