3 ms·
Python these days is sprouting type annotations all over the show, the benefits are too good to ignore. And if a given library doesn't use type annotations, pe
by EdwardDiego 5y ago
Python these days is sprouting type annotations all over the show, the benefits are too good to ignore.
And if a given library doesn't use type annotations, people will often create type stubs for it that mypy can consume.
https://github.com/python/typeshed/tree/master/stubs https://github.com/python/typeshed/tree/master/stubs
TBH, Python generics are rather clunky, although I think they're probably still going to have cleaner type signatures than C++
- eyelidlessness 5y agoThis seems to be the story for many dynamic scripting languages. TypeScript obviously, but also Ruby and PHP. Lisp folks seem to be the most steadfast in preferring dynamic typing. But even that’s not universal.