3 ms·
Well, at least we agree that 'return i++' is terrible practice (although it has nothing to do with semicolons) :) But when you write Python code, do you then e
by einaregilsson 15y ago
Well, at least we agree that 'return i++' is terrible practice (although it has nothing to do with semicolons) :)
But when you write Python code, do you then end every line with a ; ? To make it more readable for yourself?
- eropple 15y agoI prefer to avoid Python entirely, but there are cases where I have to fiddle with preexisting code or the nature of the problem makes more sense to use it, i.e. a library already exists that doesn't elsewhere. In those cases, I write idiomatic Python, without semicolons, because That's The Way You Write Python. Consistency is important, and the Python community has essentially said "don't use semicolons." The JavaScript community has essentially said "use semicolons aggressively". I write code according to those idioms so other people are able to more easily use it.