3 ms·
> 'typed' Python is a great language/dialect in its own right. Like OO in Python, it feels bolted on. The syntax for generics is bad, at least compared to Java
by dehrmann 6y ago
> 'typed' Python is a great language/dialect in its own right.
Like OO in Python, it feels bolted on. The syntax for generics is bad, at least compared to Java. Typing also exposes how poorly thought out Python's collections are. The hierarchy and methods make sense, but some things are in typing, others in collections.abc. It also falls over when using things like functools.partial.
Then there's the frequent complaint that if you're going to go to the effort to use something typed, you should use something that can take advantage of those types during compilation to optimize the code.
- zo1 6y agoI think the bolted-on feel is actually a "pro". It's a natural evolution, with the new features essentially being bootstrapped and in a lot of cases, exposed inside and using the language itself, rather than as some compiler afterthought.