3 ms·
It would be nice if the language was typed. Easier for overall maintenance, and refactoring for big projects.
by zornado 7y ago
It would be nice if the language was typed. Easier for overall maintenance, and refactoring for big projects.
- 52-6F-62 7y agoThere is a way: http://mypy-lang.org/ http://mypy-lang.org/ I've used Python a fair bit for a variety of semi-permanent or long scripts. I would have liked types more as well. Discovered MyPy after those instances.
- stuxnet79 7y agoPython 3 is typed. Not strongly typed but the point remains. Python is used in a lot of domains and I feel the strides the language has made over the past decade have made it very competitive and a worthy addition to any programmer's toolbox.
- d0mine 7y agoPython is strongly typed. It is not statically typed.
- BeefySwain 7y agoYou should look into type hinting and MyPy
- prolepunk 7y agoType hinting is a standard feature since Python 3.6. https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html The thing about python, as overall language philosophy, is convention over enforcement. If you want your team to have a particular style and use certain features, then you should agree to do it and then use automated tools (like pep8, flake) to check that code complies with those rules, but it is up to you how you want to write the code.
- baq 7y agoIt has a very nice strong typing add on in mypy. Highly recommended for a couple of years now. It’s technically optional but your CI process should take care of that.