News for hackers. Stuff that matters.
Re:Why are programmers afraid of not using semicolons in Jav... by einaregilsson on Sunday August 07, 2011 @02:52PM (#2857403)
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?

Re:Why are programmers afraid of not using semicolons in Jav... by eropple on Sunday August 07, 2011 @03:04PM (#2857435)
I 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.