Hi Andrew

> Why are double quotes 
> <http://tiddlywiki.com/dev/#TiddlyWiki%20Coding%20Style%20Guidelines> 
> preferred over single quotes for string literals? It means that every time 
> there is a double quote character it takes up twice the space in the core or 
> in plugins because it has to be escaped. Single quotes don't have to be 
> escaped so why not use those whenever possible? I'm just asking because I'm 
> finding it reduces size, increases speed and the only exception I can find to 
> using single over double is triple.

Just to answer the “why”: I’ve always defaulted to using double quotes for 
string literals in code because I find that single quotes appear in literal 
strings much more often than double quotes (mainly because of the way we re-use 
the single quote as an apostrophe).

Best wishes

Jeremy



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/F9E69677-72BE-4C4E-9926-03608930DD15%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to