Re:Comparing the Same Project in Rust, Haskell, C++, Python,...
by hermitdev on Sunday June 16, 2019 @02:34AM
(#20194146)
Lately I've been doing a lot of greenfield development in Python, developing libs for in house use at my employer. We're using 3.7 currently, and I've fully embraced type hints. With proper type hints and use of pylint, you get the static checking that you'd otherwise miss. Bonus, if you're using an IDE like PyCharm, VS code or visual studio, you usually get the linting for free either as you type or on save.
[ Parent
| on HN ]
Re:Comparing the Same Project in Rust, Haskell, C++, Python,...
by lozenge on Sunday June 16, 2019 @06:01AM
(#20194764)
Pylint is not designed to be a thorough type checker, you should take a look at mypy or pytype.
Re:Comparing the Same Project in Rust, Haskell, C++, Python,...
by AtHeartEngineer on Sunday June 16, 2019 @02:58AM
(#20194213)
I very much agree. Type hinting for everything into and out of a function, and you're in pretty good shape.