2 ms·
> The hardcore “sound types” crowd believes that anybody using dynamic types is doomed. What they believe is that "dynamic types" is a misnomer, and if you thi
by zozbot234 7y ago
> The hardcore “sound types” crowd believes that anybody using dynamic types is doomed.
What they believe is that "dynamic types" is a misnomer, and if you think your program is checking dynamic types, it is in fact doing runtime pattern matching over a variant record. There's nothing wrong with pattern matching and variant records; but conflating them with types is just nutty, and using them pervasively as part of the ordinary flow of code is no different than programming in old-style VB.
- jolux 7y agoI don’t think many people programming in dynamic languages would die on that hill. Avoiding types is kind of the allure, I think?
- bojo 7y agoAt the expense of having to write more tests that a type system could have solved at compile time, and likely catch more runtime logic bugs as well. For the record I am a convert. Types have made my developer life much happier, especially working with unfamiliar code across multiple projects/teams. When you treat your builds as long term proofs your confidence level increases dramatically.
- jolux 7y agoI don’t disagree :)
- waltpad 7y agoI suppose that you mean that it should be "checking types dynamically", rather than "checking dynamic types"?