Augmented Assignement (was: Re: PEP scepticism)
piet at cs.uu.nl
piet at cs.uu.nl
Tue Jul 3 07:36:22 EDT 2001
>>>>> Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> (MK) writes:
MK> 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.
MK> Or :+, like in Comal AFAIR. "x :+ y" is composed of two substrings of
MK> "x := x + y"; "x +:= y" is not.
It *is*, just in a different order.
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list