3 ms·
Funny, I came here to suggest the same thing. It's a good rule.
by js8 10y ago
Funny, I came here to suggest the same thing. It's a good rule.
- akvadrako 10y agoIt's not a good rule because nobody else uses it, so it's just going to make the code inconsistent when someone else works on it.
- js8 10y agoAll good rules started by nobody else using it. Though, in this case, at least three people discovered that rule independently.
- viraptor 10y agoAnd +1. I thought it's just me. It works quite well in practice and can be applied to many languages. Unfortunately in quite a few of them out prevents interpolation, so it's not a 100% solution.
- masklinn 10y ago> Unfortunately in quite a few of them out prevents interpolation, so it's not a 100% solution. A bigger issue IME is languages (mostly of the C family) where single-quoting is for character literals. Also in Smalltalk comments are double-quoted, but that's a pretty rare language to encounter.
- jsmeaton 10y agoI do. People I work with do. People I mentor do.
- Grue3 10y agoA lot of people use it. That's how I was taught to write Python and that's how I wrote it in several different companies. At my current job we use double-quotes for everything though (for some reason).