4 ms·
It doesn't check runtime (AFAIK neither does Go, it checks compile time). In fact, Python fully ignores any type hints. When coupled with mypy (http://mypy-lan
by 8fingerlouie 9y ago
It doesn't check runtime (AFAIK neither does Go, it checks compile time). In fact, Python fully ignores any type hints.
When coupled with mypy (http://mypy-lang.org/ http://mypy-lang.org/) they can be used to do type checking at "compile time", and with DropBox's pyannotate (https://github.com/dropbox/pyannotate https://github.com/dropbox/pyannotate), they can even be auto generated for existing code.
I'm not saying Python with type hints is better than a statically typed language, merely suggesting a possible solution if Python ends up being the preferred language.
Personally i love Go for the things i've used it for, and i've written and maintained large code bases in Python, and hated every minute of it. The same can be said for large code bases i've written in C, or even Java.
I've written kernels for GSM mobile phones, software for sortation devices (airport baggage sorters, mail sorters, etc), banking software, and despite our teams best intentions, given enough time and customization to meet customer demands, there is always some remote corner of the code that ends up as a "steaming pile"