[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: String Quoting Conventions
- From: "Stuart P. Bentley" <stuart@...>
- Date: Sun, 05 Sep 2010 00:54:31 -0400
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 <email@example.com>
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.