3 ms·
That's about what I said when the idea was first proposed. Actual type declarations, both enforced and used to guide code generation and optimization, would be
by Animats 5y ago
That's about what I said when the idea was first proposed. Actual type declarations, both enforced and used to guide code generation and optimization, would be fine.
Part of the problem is that, in the minds of many, Python == CPython. PyPy, which is a real compiler, is viewed as "nonstandard". For PyPy, type information, although not in type hint form, would be useful. But type hints, as currently defined, are not. See the commentary on type hints at [1].
[1] https://doc.pypy.org/en/latest/faq.html https://doc.pypy.org/en/latest/faq.html