News for hackers. Stuff that matters.
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.
Re:Why Python doesn't need blocks by angersock on Monday June 30, 2014 @12:16PM (#7965838)
...perhaps this is a hint that significant whitespace is a bad idea?
Re:Why Python doesn't need blocks by lmm on Monday June 30, 2014 @12:52PM (#7966075)
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.
Re:Why Python doesn't need blocks by pyre on Monday June 30, 2014 @02:56PM (#7966849)
... like $[ in Perl?
Re:Why Python doesn't need blocks by draegtun on Monday June 30, 2014 @05:06PM (#7967713)
Fortunately $[ was disabled from v5.16.0 (released in 2012).

ref: http://perldoc.perl.org/perl5160delta.html