4 ms·
The idea of declaratively describing transformations of data seems very exciting to me. I haven't experienced anything that lives up to the excitement though.
by worldsayshi 12y ago
The idea of declaratively describing transformations of data seems very exciting to me. I haven't experienced anything that lives up to the excitement though.
I feel a bit underwhelmed by these examples. Seems a bit to imperative, an enhancement of underscore. I want the declarations of how data representations relate to each other to be separate from the "how" in how to transform from one format to another. Probably something inspired by lenses (1). "Lenses are the XPath of _everything_." (2).
(1) - https://www.fpcomplete.com/school/to-infinity-and-beyond/pick-of-the-week/a-little-lens-starter-tutorial https://www.fpcomplete.com/school/to-infinity-and-beyond/pic...
(2) - https://twitter.com/steveklabnik/status/463748643141349376 https://twitter.com/steveklabnik/status/463748643141349376
edit: Relevant HN comment about using Lenses for reaching into data objects: https://news.ycombinator.com/item?id=7704504 https://news.ycombinator.com/item?id=7704504