Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sbergot
on Aug 9, 2024
|
parent
|
context
|
favorite
| on:
Official proposal for Type Unions in C#
A simple example is the Result<T> which could have either Ok(T value) or Error(string message). In order to get the value you need to switch over both cases, forcing you to handle the error case locally.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: