3 ms·
Strong static typing is better when used well, but worse when it's used poorly. That last part is the catch, and I've seen plenty of people think they're using
by derbOac 3y ago
Strong static typing is better when used well, but worse when it's used poorly.
That last part is the catch, and I've seen plenty of people think they're using it well when they're actually using it very, very, very poorly.
Dynamic typing isn't just a convenience sometimes, sometimes it helps compensate for poorly planned type structures.
Like a lot of things, there are tradeoffs in terms of what types of errors you want to avoid more.
- cocoacat 3y agoBut in my experience I have also experienced the opposite. I have seen people casually reuse variables by reassigning them to a new type or developing a single function that returns different types. With dynamically typed languages it sometimes feels like you can take messy shortcuts because they let you.