lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I use single quotes for strings of a single character (or similar, ie. 'M','T','W','Th','F'), and strings with double-quotes in them, and double-quotes for everything else (except for the occasional inline long string, for strings with lots of both quote types or backslashes).

On Sat, 04 Sep 2010 10:40:43 -0400, HyperHacker <> wrote:

Just curious what are some peoples' conventions for when to use
'single quotes' vs "double quotes" for inline strings. I find myself
randomly using either style, but as they show up differently in my IDE
I feel like I should be assigning some type of meaning to them, such
as internal vs displayed text, short vs long strings, etc.