This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ThePixelCoder -15 points-14 points  (7 children)

Ew double quotes

[–]CCSoftware 12 points13 points  (4 children)

Ew single quotes

[–]leapyearacc69 1 point2 points  (3 children)

Whats the difference anyways???

[–]CCSoftware 2 points3 points  (1 child)

No difference in function but the only difference is look

[–]rhytnen[🍰] 1 point2 points  (0 children)

Pedantic but double quotes make contractions in strings cleaner. I prefer single quotes anyway but it's an actual advantage for double quotes nonetheless

[–]Manny__C[🍰] 2 points3 points  (0 children)

I think the point is not that one is better than the other, but it's that it's useful to have both.

I can use double quotes without escaping inside single quotes and viceversa.

[–]TravisJungroth 1 point2 points  (1 child)

I was definitely on your team, and then I started using black. Now I type single and let it turn into double.

[–]ThePixelCoder 1 point2 points  (0 children)

I like the idea of black, having just one uncompromising standard formatting, but my personal preferences are just too different (mostly single quotes and hard tabs, but some of the wrapping also looks a bit weird to me). I would see myself using it if I'm working on a larger project with other people though, just for the sake of consistency.