Data objects in Kotlin: pretty-print your objects!

Описание к видео Data objects in Kotlin: pretty-print your objects!

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 tidy as a string, just like you’re already used to with data classes, out of the box. Let Sebastian Aigner (  / sebi_io  ) show you how this will mean less code, less typos, and more symmetrical definitions for your class hierarchies!

Find out more details in the KEEP document for data objects: https://github.com/Kotlin/KEEP/issues...

Комментарии

Информация по комментариям в разработке