Fantastic types and where to find them by César Tron-Lozai
Автор: Devoxx UK
Загружено: 6 янв. 2022 г.
Просмотров: 199 просмотров
For more info on the next Devoxx UK 👉 https://www.devoxx.co.uk
Scala has Sealed Trait + Case classes; Kotlin has Sealed and Data classes, and Java recently joined the party with sealed interfaces and records; They are called Algebraic Data Types aka ADTs.
You may wonder, what is algebraic about those types? Can you add them? Can you multiply them? Are they useful? Spoiler alert, the answers are yes, yes, and yes!
In this talk you will be introduced to ADTs and learn how you can do basic arithmetic with them. We will see how they can be used in practice and why they are a natural fit with Functional Programming languages.
We will even explore how high school algrebra can give us insight about our code.

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: