in reply to Re^3: Use of single quotes versus double quotes
in thread Use of single quotes versus double quotes
Of course 'text\n' will print out text\n on the screen when the programmer most likely meant to do just text with a new line. The argument came down to:
Do you want to explicity Expand by default, or not Expand by default.
It comes down to what you are programming, and for what use.
If what you are programming will be expanding varibles a lot, then use " and make your life easier. If you want to make sure not to expand varibles, etc, use ' by default.
My guess is, most programmers will go with " because it's lazyer and works 99% of the time.
|
|---|