Re:The type system is a programmer's best friend
by mixedCase on Saturday November 05, 2022 @05:25PM
(#33485978)
> then you should complain and check what's in your mail
Now you've wasted time and resources.
> deliver_to ought to be reusable, there shouldn't be 50 versions of it.
Reality almost never pans out that way.
> No, you as the message recipient make sure that what you got makes sense and how to deal with it.
Indeed! May I introduce you to typed parser combinators?
When we send json over the wire do we rewrite methods globally to make sure we're all in sync about the content? No, you as the message recipient make sure that what you got makes sense and how to deal with it.