by Dylan16807 · 2y ago · 0 comments
I feel like it could really use a couple examples of situations where type safety is a waste of time. As-is the post vaguely suggests a tradeoff and doesn't elaborate.
Why is an example necessary for this? It's trivially correct.
That's the problem. You can't develop a meaningful sense of balance if you only say trivially correct things.
And the specific need for an example is situations where you could use type safety but don't want to.
Personal opinion: Type systems are more useful for initial code comprehension and tooling than for writing it in the first place, or preventing bugs.