Hacker News new | ask | show | jobs
by DonHopkins 2528 days ago
About as much sense as it makes to use ; after every Python statement. Just like Pascal.

(Yeah I know, ; is a statement separator, not a statement terminator in Pascal.)

As long as you're being just like Pascal, did you know Python supported Pascal-like "BEGIN" and "END" statements? You just have to prefix them with the "#" character (and indent the code inside them correctly, of course). ;)

    if x < 10: # BEGIN
        print "foo"
    # END