News for hackers. Stuff that matters.
Re:Duck typing is safe (2020) by dirkt on Wednesday June 15, 2022 @01:46AM (#31749516)
The goal of a type system is not to prevent all bugs, or to prevent all bad things happening at runtime.

The goal is to catch as many bugs as possible BEFORE it runs in production. And even if you just catch a single bug, you have already won. In particular if the type system is balanced in such a way so there's not much additional effort involved (e.g. by using type inference).

There are no comments on this comment yet.