Want to avoid primitive obsession/boolean blindness in #elmlang? So do I!https://robots.thoughtbot.com/lessons-learned-avoiding-primitives-in-elm …
Irrelevant to elm, but seems kwargs fulfill much of this use case as well, no? (Separate type still useful in dollars vs cents etc)
-
-
the issue with that in e.g. Elm/Haskell is that it disallows use of partial application - you'd need to construct the record entirely
-
which, in certain cases, becomes more difficult; you could partially construct w/each val as a Maybe, but that seems less than ideal
- 5 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.