Augmented Assignement (was: Re: PEP scepticism)

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Mon Jul 2 14:31:30 EDT 2001


02 Jul 2001 20:18:50 +0200, Piet van Oostrum <piet at cs.uu.nl> pisze:

> SH> I've always liked having a colon on my assignment operator - I think
> SH> the single = for assignment was a mistake. If we had := for
> SH> assignment, then augmented assignments would be more clearly distinct
> SH> from other operators - :+=, :-=, :*= etc etc.
> 
> Should be +:=, like in Algol 68.

Or :+, like in Comal AFAIR. "x :+ y" is composed of two substrings of
"x := x + y"; "x +:= y" is not.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list