News for hackers. Stuff that matters.
Re:Golang generics proposal has been accepted by sdfsfsf3kjdf on Wednesday February 10, 2021 @04:12PM (#26094877)
How exactly are you going to implement a type safe option type without generics? You either have to use interface{}, which is obviously not type safe, or write/generate an option type for every type contained within it. Sum types are a lot less useful if you don't have generics.
Re:Golang generics proposal has been accepted by alecbz on Wednesday February 10, 2021 @05:48PM (#26095871)
It could have been built in to the language. Tons of builtin features (slices, maps, channels) are already "generic".
Re:Golang generics proposal has been accepted by baby on Thursday February 11, 2021 @06:14PM (#26108806)
This