Загрузка страницы

Generic inline classes in Kotlin 1.7.20

Inline classes in Kotlin are all about bringing value semantics to the language – to introduce objects where only their actual values count, but not their identity. In Kotlin 1.7.20, they’re getting one step better: Under a new experimental flag, you can make inline classes generic for the first time!

Together with Sebastian Aigner (https://twitter.com/sebi_io), explore how generic inline classes allow you to get additional type-safety when using inline classes together with class hierarchies – constraining the types passed around at compile time rather than work around any limitations with icky runtime checks.

Видео Generic inline classes in Kotlin 1.7.20 канала Kotlin by JetBrains
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
8 октября 2022 г. 17:54:20
00:08:54
Яндекс.Метрика