3 ms·
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
by charlieflowers 9y ago
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?
- harperlee 9y agoDo 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).
- charlieflowers 9y agoWhat 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.
- pygy_ 9y agoSounds about right.