Re:Lenses: Composable Getters and Setters for Functional Pro...
by whateveracct on Monday December 24, 2018 @03:03AM
(#18751051)
> Furthermore, without types, we obscure the fact that setters and getters are unified.
This is way beyond what most people need to know to benefit from lens though.
Haskell itself has a counterexample: aeson-lens. It gives you lenses and prisms for working with JSON ASTs. Any unityped language could benefit from lenses for their unityped structures (JS and Clojure come to mind.)
This is way beyond what most people need to know to benefit from lens though.
Haskell itself has a counterexample: aeson-lens. It gives you lenses and prisms for working with JSON ASTs. Any unityped language could benefit from lenses for their unityped structures (JS and Clojure come to mind.)