4 ms·
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
by freshhawk 8y ago
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/ http://funcool.github.io/lentes/latest/