This may have been discussed before, but it seems like there has been an
effort to move to tripple single quotes rather than tripple double-quotes.
What is the reason for this direction? Editors like Emacs have
difficulty with the syntax highlighting when the number of quotes don't
match up. Using the single therefore gets really confused when you have
appostrophes or single quotes within the comment. Since the apostrophe
is a common form of punctuation I would think we would like to keep that
option open in the comments. Double quotes are less common, and when
used are usually used in pairs so the syntax highlighting gets fixed.
An example of the problem is:
'''Here is some tripple sinqle quote text that's got an embedded
single quote.'''
From this quote on, Emacs syntax highlighting is in string mode. so
code appears highlighted as a string. For more info see:
http://www.etsimo.uniovi.es/python/emacs/python-mode/faq.html
Anyway, I would contend that using a single quote for punctuation is
much more common than having lone double-quotes in the text, and
therefore a reasonable solution would be to use the tripple-double-quotes.
So I am curious what the rational is for using the single-quotes?
-Stuart-
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel
- Re: [Webware-devel] triple quote convention? Stuart Donaldson
- Re: [Webware-devel] triple quote convention? Frank Barknecht
- Re: [Webware-devel] triple quote convention? Stuart Donaldson
- Re: [Webware-devel] triple quote convention? Frank Barknecht
- Re: [Webware-devel] triple quote convent... Ian Bicking
- Re: [Webware-devel] triple quote convention? Ian Bicking