[Python-3000] Fwd: Conventions for annotation consumers (original) (raw)

Guido van Rossum guido at python.org
Wed Aug 16 19🔞47 CEST 2006


On 8/16/06, Collin Winter <collinw at gmail.com> wrote:

Sorry, I meant "restrict" as in having it stated that the annotations are for typechecking, rather than attempting to support a dozen different uses simultaneously. The annotations would still be free-form, with the semantics up to whoever's implementing the typecheck function, and Python itself wouldn't take any steps to enforce what can or can't go in the annotations.

-1. Th annotations should be available for whatever the user wants to use them for. Remember, lots of folks do not use shared frameworks -- the only framework they care about is the one they write for themselves, and they should not feel guilty about using annotations for whatever metadata they need. To take up an old rule from the X11 world, the language should provide mechanism without policy.

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



More information about the Python-3000 mailing list