Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
longor1996
12 days ago
|
parent
|
context
|
favorite
| on:
.NET (OK, C#) finally gets union types
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: