[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: single quotes vs. double quotes
- From: Peter Odding <peter@...>
- Date: Mon, 12 Oct 2009 17:47:03 +0200
In my own code I use them to indicate a semantic difference, namely " means a
string that should be localized and ' is an internal string literal. This
makes it easy to search through the code.
I use a similar approach. IIRC some of Vim's syntax highlighting scripts
enable spell checking for double-quoted strings but disable spell
checking for single-quoted strings, which is where I picked up the idea.