Regarding immutable data classes in kotlin, I reme...
# announcements
g
Regarding immutable data classes in kotlin, I remember there was some discussion about a more elegant way of ~mutating member values. I think Arrow.kt adds some functionality here. Did kotlin 1.4 introduce anything new here?
z
I think you're looking for lenses? And there's nothing about that in kotlin 1.4 itself.
n
I really thing the language needs something here
Either support a way to make copies of nested immutable data more elegantly
Or add some stuff that at least makes lenses nicer to use
z
Agreed, i think a lot of ergonomics around data classes/value types could be improved. They’ve only just scratched the surface of what’s possible.