Why is there a trend for people to use single quotes '
around string
instead of double quotes "
when writing javascript? Are there any minifcation or linting tools that follow the java / c / c++ convention of having double quotes around string
and single quotes around single char
and use that for better minification / lint checking? Or visa versa? Is it a hold over from php or bash where double quoted strings are more expensive to execute that single quoted strings?
I have found that using double quotes generally tend to create files that gzip better (for transmission over the wire) because the double quotes show up more often, which is better for Huffman coding.