ursus
10/09/2023, 11:23 PM.copy
so maybe just the syntax as a sugar?ephemient
10/09/2023, 11:34 PMephemient
10/09/2023, 11:37 PMursus
10/09/2023, 11:46 PMursus
10/09/2023, 11:47 PMursus
10/09/2023, 11:48 PMursus
10/10/2023, 12:08 AMRiccardo Lippolis
10/10/2023, 5:09 AMephemient
10/10/2023, 5:27 AMephemient
10/10/2023, 5:27 AMWe are consciously avoiding introducing any new features in Kotlin 2.0.
Wout Werkman
10/10/2023, 8:21 AMI'd gladly accept it just as a sugar for copyWhile there are no compiler plugins that get your desired semantics via
var
, there are some cool compiler plugins to make working with immutable data more pleasant.
https://arrow-kt.io/learn/immutable-data/intro/