Re: Rebindings [was Re: Favorite non-python language trick?]

2005-06-26 Thread Bengt Richter
On Sun, 26 Jun 2005 14:36:42 +1000, Steven D'Aprano [EMAIL PROTECTED] wrote: On Sat, 25 Jun 2005 23:08:10 +, Bengt Richter wrote: Using := and = for assignment and equality is precisely as stupid as using = and == for assignment and equality. Perhaps less stupid: why do we use == for equals,

Rebindings [was Re: Favorite non-python language trick?]

2005-06-25 Thread Steven D'Aprano
On Sat, 25 Jun 2005 23:08:10 +, Bengt Richter wrote: Using := and = for assignment and equality is precisely as stupid as using = and == for assignment and equality. Perhaps less stupid: why do we use == for equals, but not ++ for plus and -- for minus? I agree, but I think := would be nice