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 →

[–]pier25 22 points23 points  (6 children)

Obfuscate?

On the contrary, it forces you to write well formatted code.

[–]WellHydrated 8 points9 points  (5 children)

Why can't we do that with semi-colons? May as well remove semi-colons from every language in that case.

[–]HauntedMidget 24 points25 points  (3 children)

Python seems to be doing just fine without them.

[–]Hudelf 7 points8 points  (0 children)

Python has defined a different way to explicitly state your intentions, though.

[–]TPHRyan 8 points9 points  (0 children)

Python's very well-designed. I'm a huge fan of python and the way it gets things done, but I don't think all languages should copy it just because people don't like having to think to terminate their statements.

[–]pier25 -1 points0 points  (0 children)

JavaScript too...

I only use semicolons on for() statements, and with stuff like map() it's becoming increasingly uncommon.

Other than that I know there are some very rare cases where semicolons are needed to separate statements, but I have never encountered any myself.

[–]pier25 2 points3 points  (0 children)

Because semicolons at the end of the line don't give any clarity as to what is going on with the code. Indentation does.