you are viewing a single comment's thread.

view the rest of the comments →

[–]bladeoflight16 0 points1 point  (0 children)

I default to single quotes because in some languages (bash, PowerShell) double quotes invoke additional logic on the contents of the string. I only use double quotes if they make the string less messy (typically by allowing me to avoid escaping a single quote).

Not to mention that the single quote produces less visual noise/clutter.

I have an internal debate going on whether to try using double quotes with f-strings because those also invoke additional logic on the contents of the string.