Even with a better name, I think having the two choices side-by-side just requires programmers to think about making a choice that's irrelevant for their program; not having the choice streamlines the thought process. -- Guido van Rossum
Does this mean that if Guido was a linguist, he would have loved newspeak ?
Streamlining
jplindstrom on 2005-03-14T10:05:15
So... since
$counter++;
is just shorthand for
$counter += 1;
and that is just shorthand for
$counter = $counter + 1;
I guess only having the last one would streamline the thought process in a brilliant way.
Re:Streamlining
rlehy on 2005-03-14T10:48:33
Hm... Python 1.5.2 (#0, Sep 17 2002, 20:29:27) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> counter = 1
>>> counter += 1
File "<stdin>", line 1
counter += 1
^
SyntaxError: invalid syntax
>>> counter++
File "<stdin>", line 1
counter++
^
SyntaxError: invalid syntax
(Later versions do have a+=1, but not a++.)
BTW, the original quote is about removing lambda, map(), filter(), and reduce() (while lambda and closures are already horribly constrained in current versions). That sure will streamline the 'switch to Ruby' thought process for the part of me that needs to write non-Perl.