Re:Why Python doesn't need blocks
by ceronman on Monday June 30, 2014 @11:45AM
(#7965637)
This is the only case where I think that using whitespace indentation for delimiting blocks of code is not a good idea. It makes this particular problem very difficult to solve elegantly. In languages where blocks are delimited by brackets is easer.
[ Parent
| on HN ]
...perhaps this is a hint that significant whitespace is a bad idea?
It's an argument to weigh in the balance, yes. Given that Python is more readable than languages without significant whitespace (even when those languages have the advantage of easy multiline lambdas), I don't find it convincing.
... like $[ in Perl?
Fortunately $[ was disabled from v5.16.0 (released in 2012).