TypeScript Berlin Meetup #5 - Maciej Sikora - Elm in TypeScript, pattern matching and beyond

preview_player
Показать описание
◭ Elm is a purely functional statically typed language compiled to JS. Among other great features of Elm, there are two outstanding core ones - Sum types and Pattern matching.

Pattern matching in Elm allows pattern match over one, many or nested sum types with full type safety. The talk will be about how much from Elm can be replicated in TypeScript, we will go through exhaustive switch statement, making sums by disjoint unions, and finally we will try to replicate pattern matching by advanced type trickery with mapped, conditional, and even template literal types.

◭ Maciej Sikora - an old-timer, has worked in many stacks and languages in the backend, frontend, and mobile. Currently working as a full-stack developer where he switches between Python and TypeScript.

------------------------
Next:
------------------------
📚 Resources:

✅ Learn more about Prisma:

------------------------
💬 Connect with Prisma:

------------------------
Рекомендации по теме
Комментарии
Автор

Elm is an amazing language, I'm a full stack typescript developer and want to learn elm a lot

fabioramatis
Автор

Lol you can definitely do exhaustive switch statements in TS, he just doesn't know how apparently.

guidobit