Want to avoid primitive obsession/boolean blindness in #elmlang? So do I!https://robots.thoughtbot.com/lessons-learned-avoiding-primitives-in-elm …
Which is basically just a newtype but with the language doing most of the legwork
-
-
yep - that's def possible in Elm w/type aliases, but you lose partial application and compile-time assurance (re: primitives)
-
e.g. quantity doesn't seem like it benefits from a type if it were passed as quantity: 1
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.