Re:Go generics draft design: building a hashtable
by ccktlmazeltov on Thursday June 18, 2020 @03:50PM
(#23567125)
But you don't need to, generic Option and Result types could be built as part of the standard library.
[ Parent
| on HN ]
Re:Go generics draft design: building a hashtable
by masklinn on Saturday June 20, 2020 @09:44AM
(#23583900)
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).
Re:Go generics draft design: building a hashtable
by ccktlmazeltov on Sunday June 21, 2020 @03:15PM
(#23594548)
sum types are still super useful imo without generics.