DEV Community

Discussion on: Typescript - Manipulating Deeply Nested Immutable Objects with Lenses

Collapse
vitoke profile image
Arvid Nicolaas • Edited

I always liked the idea of immutability and lenses, but disliked the indirectness of the resulting code. The @rimbu/deep library, part of the Rimbu immutable collections library, offers a function called patch and an object called Path that can perform lens-like operations on plain objects.

See:

[Disclaimer] I am the author of Rimbu

Collapse
piq9117 profile image
Ken Aguilar Author

Nice! I'm glad a lot more people are exploring this space in typescript. I use optics coz it's what i'm used to but I gotta admit, the ergonomics isn't that good in typescript.