3 ms·
> Technically Python is now an optionally-typed language, as of version 3.5 Well no, since the compiler isn't checking types and you need a third party tool fo
by camus2 9y ago
> Technically Python is now an optionally-typed language, as of version 3.5
Well no, since the compiler isn't checking types and you need a third party tool for that. So it's not optional typing.
PHP does have run-time optional typing and was successful at retrofitting a static type system in a completely dynamic language.
Mypy is just a static analysis tool.
- icebraining 9y agoFine, but it's just an import away: https://github.com/kislyuk/ensure https://github.com/kislyuk/ensure (written by HN user ak217)