Dave Hansen wrote:
> Not really. It was mostly a lead-in to that last sentence. Problems
> like this couldn't happen in Python. So it's an opportunity to get a
> giggle at the expense of programmers using a language that gives you
> enough rope to shoot yourself in the foot...
Which can be entirely avoided by making the braces mandatory rather than
optional. This is one thing perl got right:
while (foo); # parse error
while (foo) next; # parse error
while (foo) { next; } # ok
while (foo) { } # ok
And if you compile C++ without a lint checker, well, you're playing with
fire. :)
--
http://mail.python.org/mailman/listinfo/python-list