Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The new C# unions are not reference-only. The attribute/interface allows implementing custom union types by writing `TryGetValue`-methods instead of a single `object? Value {get;}`. The compiler handles this transparently.
 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: