6

More About Future Support for Value Classes

 2 years ago
source link: https://www.youtube.com/watch?v=33JpZZz5MNw
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

More About Future Support for Value Classes

2,794 views
•Apr 26, 2021

This is the 4th video from the Kotlin 1.5.0 release series. If you have not seen the previous videos please watch them first.

Sealed interfaces - https://youtu.be/d_Mor21W_60​ JVM records - https://youtu.be/iyEWXyuuseU​ Inline value classes - https://youtu.be/LpqvtgibbsQ​ This video describes our plans to expand value class functionality. In it, we will discuss the syntactic change from inline classes to value classes, and provide further insight into the future development of this feature. Note that it is not stable functionality of the Kotlin 1.5 release!

00:00​ Future: Value-Based Classes 01:33​ Valhalla project 06:51​ Immutability of value classes 10:37​ Copyable properties and copying functions 14:27​ More resources

Value classes represent immutable data classes without identity, which allows major future optimizations with the use of Java’s Valhalla Project. You can find more details about this planned functionality in the Design Notes on Kotlin Value Classes in KEEP.

Design Notes on Kotlin Value Classes in KEEP -https://github.com/Kotlin/KEEP/blob/m...

Visit Kotlin website - https://kotlinlang.org/​ Kotlin Documentation - https://kotlinlang.org/docs/home.html

Check out our blog - https://blog.jetbrains.com/kotlin/​ Subscribe to our Twitter - https://twitter.com/kotlin


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK