Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
DeathArrow
20 days ago
|
parent
|
context
|
favorite
| on:
Union types in C# 15
I love it, but I see a downside, though: unions are currently implemented as structs that box value types into a Value property of type object. So there can be performance implications for hot paths.
IcyWindows
20 days ago
[–]
The article mentions that one can implement a union type that doesn't do boxing.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: