C# is Getting Discriminated Unions!

preview_player
Показать описание

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

Really cool to have native Result and Option support, though it doesn't take too much to create these manually anyhow. It will be nice to see these become mainstream for error handling.

collynchristopherbrenner
Автор

Wow, this is a big step forward for C#! Can't wait to see more updates.

Автор

I have no idea what this is and can't think of why i would need it. Someone enlighten me please!

thefattysplace
Автор

Someone at Microsoft just saw how languages like Go & Rust are doing things. This will greatly help with error handling.

gabrielilie
Автор

Man, I never thought we'd actually see this 🥲

parlor
Автор

that's neat. F# is slowly dripping into C#

GdeVseSvobodnyeNiki
Автор

Very cool! Can't wait for the full description ^_^

SG_
Автор

This is big news. Hopefully there's no caveats to the type safety with these (like nulls).

DryBones
Автор

Wow, cool. When are these coming? C# 13 or later? Now why aren't ad hoc unions called anonymous unions since we already have anonymous everything else? Oh right, they do have names, just several of them! 😂 Is there a variant of the ad hoc union that uses and instead of or so we don't have to define marker combo interfaces and pray that implementers use them?

EdKolis
Автор

Microsoft needs to make switch expressions to be able to return void for Union Types

antonmartyniuk
Автор

Could you make a video on unmanaged function pointers (delegate* unmanaged)? Since there seems to be no actual documentation of this feature.

rhogal
Автор

Predictions on when this gets cancelled?

Robert-ywms
Автор

Is this another Union in C# dream? How do I know I am not in a dream again?

nemanjaberic
Автор

kinda sucks that the syntax is T1 or T2 and not T1|T2 but ok

Kitulous
Автор

YESSSS OMG LETS FUN OHOHHOHOHOHOHH I LOVE ONIONS

MatinDevs
Автор

With union, Delphi runs to complete transfer to c#))

DarkIllusoire
Автор

Is this a compiler only feature or do the need to change the CLR too?

ryan-heath
Автор

And of course they won't naturally interop with F# implementation 🫠

Nekroido
Автор

WHAT A TIME TO BE ALIVE YAY LET'S

Kitulous
Автор

A giant leap forward towards turning C# into F#. If they actually manage to get it done and shipped of course. I hope so. Next stop, immutable by default and expressions instead of statements 😊

davidneale
welcome to shbcf.ru