Y
Hacker News
new
|
ask
|
show
|
jobs
by
ccktlmazeltov
2195 days ago
But you don't need to, generic Option and Result types could be built as part of the standard library.
1 comments
masklinn
2193 days ago
Yes but then you need neither sum types nor user-defined generics, you can just build-in whatever sugar is useful or necessary (possibly repurposing existing sugar e.g. the `select` statement).
link
ccktlmazeltov
2192 days ago
sum types are still super useful imo without generics.
link