View Single Post
Old 11-09-2019, 06:52 AM   #600
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by woodslanding View Post
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.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote