On 8/15/06, Collin Winter <[EMAIL PROTECTED]> wrote:
If multiple libraries use the same wrappers, then I can't use more
than one of these libraries at the same time. If a typechecking
consumer, a docstring consumer and PyPy all use the same wrapper (or
"syntax" -- you switch terms between sentences), then I can't have
typechecking and docstrings on the same functions, and I can't do
either if I'm running my program with PyPy.

There is a MANY TO MANY relationship between syntaxes (as denoted by wrappers) and tools that work on those syntaxes.

Think of it by analogy: there are programming languages and there are interpreters. Some programming languages run on multiple interpreters (e.g Python on .NET, JVM, PyPy, CPython). Some interpreters run multiple languages ( e.g. .NET, JVM). Some interpreters run a single language (CPython).

Or another analogy from my domain: there are a variety of XML syntaxes. Some are designed for a single program. Others, like Atom, are designed for many, many programs. Also, some programs can handle a single input format. Others (like RSS/Atom readers) can consume many.

A Typechecking consumer and a PyPy compiler consumer might work on the same annotations because they are both interested in TYPES (but doing different things with them). These type consumers might also choose to implement more than one type checking syntax, if there were a good reason that more than one arose (perhaps Unix types versus .NET types).

A docstring consumer and a typechecking consumer would *by definition* use different syntaxes/frameworks/wrappers because the information that they are looking for is different! But there could be hundreds of docstring consumers (as there are today!). Docstrings are a special case because the syntax for them is fairly obvious (an unadorned string).

 Paul Prescod

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to