[Python-ideas] PEP 484 (Type Hints) -- first draft round
Ethan Furman
ethan at stoneleaf.us
Fri Jan 23 02:04:07 CET 2015
On 01/22/2015 04:55 PM, Juancarlo Añez wrote:
> On Thu, Jan 22, 2015 at 3:35 PM, Guido van Rossum wrote:
>>
>> Even there, the problem could also be solved by having a way to configure
>> the type checker to ignore annotations in certain packages (or to only check
>> code in specific directories).
>
> Having library authors change their code because type hinting was introduced would be unacceptable.
Annoying, yes. Unacceptable? No. As the language progresses library authors occasionally have to make adjustments
(and I am one, so I feel the pain).
> The burden must fall on whomever wants to benefit from type checking.
Indeed -- if someone does want type checking, but library xyz is using annotations for something else, then a way
(provided by the type checker) to skip certain modules would be good.
--
~Ethan~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150122/96c2f7ad/attachment.sig>
More information about the Python-ideas
mailing list