(no title)
T-R | 10 months ago
Optics are famously abstract in implementation, but I don't think people have trouble applying them - people seem to like JQuery/CSS selectors, and insist on `object.field` syntax; it's kind of wild that no mainstream language has a first-class way to pass around the description of a location in an arbitrary data structure.
[1] https://ghc-proposals.readthedocs.io/en/latest/proposals/002...
[2] https://ghc-proposals.readthedocs.io/en/latest/proposals/015...
aozgaa|10 months ago
[1] https://en.cppreference.com/w/cpp/types/offsetof
T-R|10 months ago
[1] https://github.com/graninas/cpp_lenses [2] https://github.com/jonsterling/Lens.hpp