3 ms·
> Python should get serious about static analysis Then it's not python I love people trying to shove static typing onto python when there's a multitude of oth
by raverbashing 11y ago
> Python should get serious about static analysis
Then it's not python
I love people trying to shove static typing onto python when there's a multitude of other choices to pick.
The alternatives suck exactly because of that.
If you want static typing go use Java, Go, etc.
- rattray 11y agoWhat about optional, inferred, lightweight static typing? Do those things ever suck? What would be bad about that?
- raverbashing 11y agoIf you want a static check of your program, use PyLint, it's excellent at detecting most errors, be them syntax, typing error (things like x = 10; x.do_stuff() ) I think annotations would be useful in very few cases, since interfaces are not bound by types and that's what's good about python
- Ciantic 11y agoOptional typing is definitely coming. As eeZi pointed out, and I've been following this in the mailing list also. https://www.python.org/dev/peps/pep-0484/ https://www.python.org/dev/peps/pep-0484/ Guido is pushing to standardize mypy as static analysis for py3k, but it is taking so damned long, meanwhile something like TypeScript is already superb with it's compiler service architecture providing great tooling for all kinds of editors & IDE. PEP484 is simply too little, to get good tooling it requires compiler service (API for IDEs), and we are long way from that.