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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 calledpatch
and an object calledPath
that can perform lens-like operations on plain objects.See:
[Disclaimer] I am the author of Rimbu
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.