News for hackers. Stuff that matters.
Re:Lenses: Composable Getters and Setters for Functional Pro... by freshhawk on Monday December 24, 2018 @05:07AM (#18751390)
I use the lentes[1] library in Clojure all the time, doing all these things. With dynamic types lenses/prisms are the same thing, which I find nice. The library exposes a function called `id_setter` to go along with the core function `identity` to make use of the last bit of lens behaviour you describe.

I'm pretty sure it isn't types that are causing the aesthetic and usability differences you are seeing. I feel the same way about looking at js and typescript lens use. I thought it was just the result of using a concept from one paradigm in a language designed for another, which caused some awkwardness.

[1] http://funcool.github.io/lentes/latest/

There are no comments on this comment yet.