Has anyone used Ballast with Arrow Optics? From wh...
# ballast
c
Has anyone used Ballast with Arrow Optics? From what I read in the documentation, it seems like Ballast has quite a bit of boilerplate because of
copy
, which Optics is announced to solve
c
It's quite intentional that Ballast imposes no restrictions on what can be used for its Inputs, Events, or State objects. Optics would be a great option for reducing the
.copy
boilerplate! The main thing is just that the state object is immutable, but you can use any method you like for actually making the updates. Kopykat is another option I've had my eye on, but haven't tried it yet
c
If you have the time, I highly encourage you the read the KEEP on value classes 🙂 They are thinking of adding first-class support for deep copy of immutable structures