Quote:
Originally Posted by woodslanding
I'm very curious:
what motivated you to move to double quotes in the new code? I've become very partial to Lua's use of single quotes, and it sounds like you even deviated from your chosen style guide to do it.... is there a particular reason?
|
The previous versions were all double quotes as well. As for why:
- Laziness; everything was already doubles when I started working Javascript and realized that single quotes are popular.
- Outside of that style guide, double quotes seem to be the standard for Lua. The reference manual, Programming In Lua, and lua-users.org all use doubles.
- IMO doubles make slightly more sense since single quotes/apostrophes are more likely to appear in a UI's text.
The biggest thing to me is consistency, though. If someone submitted a pull request where they'd changed everything to single quotes I'd probably accept it and start using singles because I use them in Javascript all day anyway.