Overloadable Assignment PEP
Erik Max Francis
max at alcyone.com
Fri Apr 4 01:01:35 CEST 2003
Lulu of the Lotus-Eaters wrote:
> Then again, I wouldn't mind adding the new operator ":=" which was
> "generic augmentation"... the operator could do -absolutely nothing-
> standard types, but could be available for custom meaning in custom
That strikes me as a better approach; having a special "augmentation"
operator which has no predefined meaning but can be overridden as
desired, and thereby leaving usual assignment alone.
The only reservation I might have is whether or not := is a good choice,
simply because of the :=/= and =/== language differences out there.
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ The decree is the Sultan's, the mountains are ours.
Official Omega page / http://www.alcyone.com/max/projects/omega/
The official distribution page for the popular Roguelike, Omega.
More information about the Python-list