Re:Why Elm? [pdf]
by charlieflowers on Monday May 08, 2017 @09:07PM
(#14296978)
So basically, it's like using dependency injection, and what you're injecting are higher order functions for the getters and setters for whatever properties you need. Is that right?
[ Parent
| on HN ]
Do they need to be functions? Because this seems a lot like handling [:a :keyword :vector :for :navigating :trees] in Clojure and passing it to either update-in or get-in functions, which is a pattern ubiquitous in re-frame, but not sure is can be called a lens).
Re:Why Elm? [pdf]
by charlieflowers on Tuesday May 09, 2017 @04:01PM
(#14303335)
What you're saying sounds similar. But my question and your post are both missing the "composition" aspect. Somehow lenses are composable, and I guess to grok that we'd need to look deeper.