2 ms·
This is a decent description of how to handle unwrapping a payload in a language with ADTs. The swipe at Rich Hickey at the beginning is ill-considered, howeve
by samatman 7y ago
This is a decent description of how to handle unwrapping a payload in a language with ADTs.
The swipe at Rich Hickey at the beginning is ill-considered, however. This is the sort of use case that clojure.spec is designed for, and it can, and does, handle validation at an equivalent level of detail.
You can watch him building his speaking career on the emotional appeal of specifying the types of your payloads here: https://vimeo.com/195711510 https://vimeo.com/195711510
- IceDane 7y agoI don't think this is a swipe at Rich Hickey, unless it's considered a swipe to call someone out for repeatedly making misinformed statements about things they don't understand properly.. which is what Hickey does a lot in his talks, about Haskell's type system in particular.
- samatman 7y agoThe author says that Rich Hickey has built a speaking career on emotional appeals to the superiority of dynamic types. I would prefer to say that Rich Hickey has built a dynamic programming language which includes a powerful typing system and that he's largely responsible for its design. It's difficult to reconcile those two statements.
- whateveracct 7y agoNot really he's clearly done both.