masaeedu / nix-optics

MIT License
34 stars 1 forks source link

Benefit over recursiveUpdate? #3

Closed jorsn closed 3 years ago

jorsn commented 3 years ago

What's the benefit of this over recursiveUpdate?

masaeedu commented 3 years ago

Well for one thing you can use it to overwrite a deeply nested attrset as well as non-attrsets. The former is not supported by recursiveUpdate.

That aside, they're profunctor optics: so you can do all the stuff with them that you can with profunctor optics. You can: