Python Macros
gabriele renzi
rff_rff at remove-yahoo.it
Tue Oct 5 06:39:38 EDT 2004
Michael Sparks ha scritto:
>>I'd like to add messages and message passing, for example.
>
>
> Why do you feel you need to extend the language for this? Why not (for
> example) overload <<, >> and similar operators? __lshift__, __rshift__ etc.
ah, so the OP is asking about Higher Order Messages a-la F-Script? (or
hyper ops a-la perl6)
I don't think this can be done in pure python. You can do half of it, say:
collection >> stuff # map the stuff over the collection
or
collection >> operator << othercollection
but you cant do
stuff operator << collection
More information about the Python-list
mailing list