5 ms·
Yeah, that one is indeed obvious. That's what everyone advocating for static typing (which you mean, somebody commented already) has been shouting all the time.
by anyfoo 4y ago
Yeah, that one is indeed obvious. That's what everyone advocating for static typing (which you mean, somebody commented already) has been shouting all the time.
The problems coming from dynamic typing are just unnecessary, and the only thing that made python palpable for me again was mypy, which introduces static typing into python. But it's not the default, so it still only really works for small things.
- teaearlgraycold 4y agoIMO mypy is severely lacking compared to what TypeScript added to JavaScript. I'd always pick TS over Python given the choice.
- ramraj07 4y agoWe use pytype as well but nothing works runtime right? I implemented a “check_type” decorator I use in many places but am starting to think I should decorate all the methods in my code with this decorator while building it or something.