Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Why use double quotes for strings #5811
But to specifically answer your question, we occasionally work in languages other than TypeScript. All those languages either require double quotes for strings (e.g. C#, C++, F#) or at least allow double quotes for strings (e.g. Python, Ruby). It's easier not to ask people to shift their muscle memory when switching back and forth between languages.
One of the most common head-scratching problems with JSON is "why can't my JSON file be parsed?" and an hour later you'll find out single-quoted strings aren't part of the JSON standard.
So double quotes have the least cognitive burden for us on the team. Hope that answers your question!
we decided to ban single quotes after a day of full text searching for
On Fri, Nov 27, 2015 at 1:44 PM, Daniel Rosenwasser <