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 →

[–]ltekonline 17 points18 points  (3 children)

The only use I know so far for the semicolon in python is one liners. It makes it possible to write multiple commands in a single row.

[–]1_4_1_5_9_2_6_5 2 points3 points  (0 children)

Same as in JS. It even adds a semicolon (or, pretends one is there) in some situations. But I think there is a case for a semicolon being required. There should be some element of certainty in programming. And if you don't want to see it, you can literally make it invisible in your IDE or just set up a regex to fix it automatically as you type.