Re:Airbnb JavaScript Style Guide
by bambax on Friday July 03, 2015 @06:17AM
(#9824618)
Single quotes are a big big pain if you have strings with apostrophes (which is common in names: O'Brian, d'Alembert).
You can escape them, but that's an extra pain and strain on readability; you can use some other character but that will usually cause problems down the road.
Why so many people insist on single quotes is a mystery...
You can escape them, but that's an extra pain and strain on readability; you can use some other character but that will usually cause problems down the road.
Why so many people insist on single quotes is a mystery...