[Python-3000] Type parameterization (was: Re: Type annotations: annotating generators)

Guido van Rossum guido at python.org
Sat May 20 16:37:41 CEST 2006


On 5/19/06, Talin <talin at acm.org> wrote:
> Side note: I'm actually in favor of the idea of Python adding
> syntactical support for operators that have no "built-in" definition.
> The use case would be for classes that define new operators that don't
> correspond to the semantics of any existing operator. But that's another
> thread, maybe one not worth starting :)

That could be done for a fixed number of new operators with fixed
priorities. (But you'd have to pick your set of operators somehow.)

It could not be done if you wanted to let users define their own
combination of squiggles on the fly (the parser and lexer are too
stupid).

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list