Re:Golang generics proposal has been accepted
by eeperson on Wednesday February 10, 2021 @03:44PM
(#26094512)
I think you want generics for many useful sum types (e.g. options) so you don't have to repeat your sum type definition everywhere it is used. Also, you can have options and matching without sum types (e.g. scala).
[ Parent
| on HN ]
Re:Golang generics proposal has been accepted
by merb on Wednesday February 10, 2021 @04:34PM
(#26095136)
btw. scala 3 might change that. there is a language feature which can be turned on to have explicit nulls, which will be in the form of union/sum types: https://dotty.epfl.ch/docs/reference/other-new-features/expl...