1 | initial version |
Nope. Use whatever makes sense in the given context. If editing existing code I try to be consistent at least with the surrounding code (if there are already strings in the function, class, or module I'm editing).
When writing new code I always default to single-quotes (why bother using double-quotes when I can save one of my fingers a stroke (at least on a US keyboard double-quotes require holding shift)) unless I'm writing a string that contains an apostrophe in which case I'll use double-quotes.
If you look at the existing Sage sources this is all over the place and there's no standard. Normally that would bother me but when it comes to single vs. double-quotes I think that's so completely subjective that it's impossible and pointless to enforce a standard.