Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mrsmrtss
14 days ago
|
parent
|
context
|
favorite
| on:
High-Level Rust: Getting 80% of the Benefits with ...
Well, C# has more powerful pattern matching, only compiler exhaustiveness on types is missing today. In Java, sum types (sealed interfaces/classes) require all members to have the same parent, so they can be used only in very narrow cases.
vips7L
14 days ago
[–]
As opposed to C# that doesn't have any form of sum types?
mrsmrtss
14 days ago
|
parent
[–]
C# will have more advanced sum types this year, it's currently in preview.
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: