12 ms·
Brian McKenna just released fantasy-lenses which gives you lenses for JavaScript: https://github.com/puffnfresh/fantasy-lenses https://github.com/puffnfresh/fa
by dangoor 13y ago
Brian McKenna just released fantasy-lenses which gives you lenses for JavaScript:
https://github.com/puffnfresh/fantasy-lenses https://github.com/puffnfresh/fantasy-lenses
- michaelsbradley 13y agoMichael Greenberg also published a JavaScript lenses library back in 2007, as part of his thesis at the University of Pennsylvania: http://www.cis.upenn.edu/~mgree/ugrad/lenses/docs/overview-summary-lens.js.html http://www.cis.upenn.edu/~mgree/ugrad/lenses/docs/overview-s... It's a bit dated now, to be sure, as there have since been many developments in the field of "bidirectional programming". See, for example, Daniel Wagner's paper on "Edit Lenses": http://dmwit.com/papers/201107EL.pdf http://dmwit.com/papers/201107EL.pdf