News for hackers. Stuff that matters.
Re:Golang generics proposal has been accepted by Cyph0n on Wednesday February 10, 2021 @03:29PM (#26094305)
Yep, seemed weird to me how (a form of) generics existed, but was exclusive to the stdlib/language.

If generics were unnecessary, why did the stdlib/language need them? Couldn't they just have lived with, e.g., make_map, make_slice, make_chan, etc?

Re:Golang generics proposal has been accepted by cies on Wednesday February 10, 2021 @03:34PM (#26094371)
Exactly. It was IMHO pretty authoritarian to say "you dont need generics" and then use it yourself in the standard lib.

But then Go is not a public place: it's private domain of Google.

I decided long time ago I dont want to learn a private tool without being paid.

Re:Golang generics proposal has been accepted by piinbinary on Wednesday February 10, 2021 @03:33PM (#26094367)
And a separate copy of `append` for every possible type :)