DEV Community

Discussion on: Simple Immutable Data w/ Spectacles 👓

steida profile image
Daniel Steigerwald

Why should I use it if I am using monocle-ts experimental?

anthonyjoeseph profile image
Anthony G Author

If you're happy w/ monocle-ts, you shouldn't! The main advantage is just ergonomics - spectacles-ts is a bit more terse & easier for a beginner to pick up (hopefully)

The idea is to make this type of functionality more accessible & simpler to use, to be able to reach as broad an audience as possible.

There is some functionality that doesn't exist in monocle-ts - yet. upsert and remove, for example, are planned to come to monocle-ts at some point. Basically, if it modifies the underlying structure of the object, it doesn't exist in monocle, but it should arrive at some point