Comment on What are some common misconceptions about programming that you'd like to debunk?
agressivelyPassive@feddit.de 9 months agoDynamically typed languages all suffer that fate. There’s a reason Typescript literally has that feature in its name.
What does help though is type hinting. You “just” have to enforce it and its fallout in your entire codebase.
Ephera@lemmy.ml 9 months ago
Yeah, we invested a lot of time into type hinting and checking, but mypy would never exit without warnings and errors, because many libraries we were using had no type hints.
It was also just exhausting/cumbersome, having to write type hints everywhere, as there’s no type inference.
But yeah, we always joked that someone should create TypeScript for Python – Typhon.
abhibeckert@lemmy.world 9 months ago
Part of the investment has to be only using libraries that have type hints.