[Python-3000] What's the point of annotations?

Phillip J. Eby pje at telecommunity.com
Tue Jan 2 19:22:53 CET 2007


At 12:08 PM 1/2/2007 -0600, Collin Winter wrote:
>I could say You Aren't Going to Need It, but that gets the tense
>wrong; we're getting along without annotations quite nicely here in
>the present. In short: I'd like to request that PEP 3107 be rejected
>as an overly-specific, unnecessary addition to the language.

You left off overloading and argument adaptation as use cases.  These are 
considerably more readable when specified in-line, just like decorators are 
more readable placed above the function than after it.

As with decorators, these uses happen today, but are more awkward without 
the syntax.



More information about the Python-3000 mailing list