Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
clintonc
· 11y ago · 0 comments
My rationale for single quotes is also that JSON chose for you -- if you have JSON-formatted strings in your javascript and you use single quotes for your strings, you don't have to escape the double quotes.
Comments
[–]
joepie91_
11y ago
I'd find it very worrying that you have JSON-formatted strings in JS code. Why would you do that, when there's also a native representation?
[–]
phpnode
11y ago
Do you do that more or less frequently than writing strings with apostrophes?