5

Data objects in Kotlin: pretty-print your objects!

 1 year ago
source link: https://www.youtube.com/watch?v=ovAqcwFhEGc
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.
neoserver,ios ssh client

Data objects in Kotlin: pretty-print your objects!

4,517 views Oct 6, 2022 Kotlin 1.7.20 comes with a new experimental feature for object declarations that especially improves work with sealed classes. This new feature is called data objects. Adding the “data” modifier to your object declarations ensures they look nice and ti …...more
...moreShow less
Comments
JluoH
Personally, I had to set the language version = 1.8, otherwise the code would not compile

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK