[E-Lang] Operators #4: Indexing!
Tyler Close
tclose@oilspace.com
Mon, 09 Apr 2001 10:06:17 +0100
At 07:39 PM 4/6/01 -0700, Mark S. Miller wrote:
>The relevant parts of Python page
>http://www.python.org/doc/current/ref/sequence-types.html would have us expand
>
> thing[key]
>
>to
>
> thing op__getitem(key)
>
>and expand
>
> thing[key] := value
>
>to
>
> thing op__setitem(key, value)
Does anyone else think that making ":=" a non-expandable operator is a good
thing? I like the idea of knowing for certain what an assignment statement
does. It gives me an anchor to start from.
Once E converts to immutable collections, there will be no built-in types
that benefit from this expansion. I think you should get rid of it.
Tyler