News for hackers. Stuff that matters.
Re:Black: An uncompromising Python code formatter by samatman on Friday May 25, 2018 @04:21PM (#17157554)
Lua, and there are others. I favor double quotes for this same reason even when single quotes are allowed.

I'd like «guillemets» but that's going to have to be self-serve...

Re:Black: An uncompromising Python code formatter by spc476 on Saturday May 26, 2018 @03:34AM (#17160691)
I use single quotes when the string in question is used like an enumeration:

    set_color('black','white')
And double quotes for strings meant to be read by a human:

    print("Hello there.  How are you?")
And an example with both forms:

    syslog('warning',"unit %s spin rate %f too low",u,rate)
For me, it's an indication of how I expect the string to be used.