podcast

DotNet&More #159: Union в C# и не только

26.09.2025
Listen to the episode on your favorite platforms:
  • Apple Podcasts
  • Yandex Music
  • Youtube
  • Spotify
  • Castbox
  • Pocket Casts
  • PlayerFM
  • Overcast
  • Castro
  • RadioPublic
На прошлом стриме Вы спрашивали, зачем нужны Union в будущем C#. Нам показалось, что наш ответ недостаточен, так что самое время выделить этой теме отдельный выпуск.

Спасибо всем, кто нас слушает. Ждем Ваши комментарии.

Музыка из выпуска: 

https://artists.landr.com/056870627229

https://t.me/angry_programmer_screams

Весь плейлист курса "Kubernetes для DotNet разработчиков": https://www.youtube.com/playlist?list=PLbxr_aGL4q3SrrmOzzdBBsdeQ0YVR3Fc7

Бесплатный открытый курс "Rust для DotNet разработчиков": https://www.youtube.com/playlist?list=PLbxr_aGL4q3S2iE00WFPNTzKAARURZW1Z

Shownotes: 

Вступление

Unions уже сейчас в C# 

Что такое Union

Как Visitor заменяет Union 

Зачем бекендеру Union?

enum как симптом необходимости в Union

Union в C#15

Ссылки:

https://youtu.be/jRJa83DeOd8?si=nlWtm_rY0et23bDy&t=3745 : Union в C# 

https://en.wikipedia.org/wiki/Discriminated_union : Discriminated union

https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/discriminated-unions : В F# 

https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types : В Typescript 

https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html : В Rust 

https://kotlinlang.org/docs/sealed-classes.html : В Kotlin 

https://docs.oracle.com/en/java/javase/17/language/sealed-classes-and-interfaces.html : И даже в Java

Видео: https://youtube.com/live/ItNZ3tKhzxs

Слушайте все выпуски: https://dotnetmore.mave.digital

YouTube: https://www.youtube.com/playlist?list=PLbxr_aGL4q3R6kfpa7Q8biS11T56cNMf5

Twitch: https://www.twitch.tv/dotnetmore

Обсуждайте:

Telegram: https://t.me/dotnetmore_chat

Следите за новостями:

– Twitter: https://twitter.com/dotnetmore

– Telegram channel: https://t.me/dotnetmore

Copyright: https://creativecommons.org/licenses/by-sa/4.0/