Marko Novakovic
04/19/2021, 9:35 AMinline class
and value class
. why do both declarations exist? will one of them be dropped in stable release?Albert Chang
04/19/2021, 9:50 AMYou define a value class with one constructor parameter and annotate it with. We expect everyone to use this new syntax starting from Kotlin 1.5. The old syntax@JvmInline
will continue to work for some time. It will be deprecated with a warning in 1.5 that will include an option to migrate all your declarations automatically. It will later be deprecated with an error.inline class
Marko Novakovic
04/19/2021, 9:52 AMJonathan Olsson
04/19/2021, 10:01 AM