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
Zach Klippenstein (he/him) [MOD]
09/03/2020, 2:34 AM
I think you're looking for lenses? And there's nothing about that in kotlin 1.4 itself.
n
Nir
09/03/2020, 12:55 PM
I really thing the language needs something here
Nir
09/03/2020, 12:56 PM
Either support a way to make copies of nested immutable data more elegantly
Nir
09/03/2020, 12:56 PM
Or add some stuff that at least makes lenses nicer to use
z
Zach Klippenstein (he/him) [MOD]
09/03/2020, 1:50 PM
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.