2 ms·
I think the reality re generics was that the authors of Go wanted to see what people did instead to understand the patterns of usage so when they -did- add gene
by mst 2y ago
I think the reality re generics was that the authors of Go wanted to see what people did instead to understand the patterns of usage so when they -did- add generics they could provide the simplest thing required.
Which is probably the only real way to figure out what 'simplest' is, I deliberately spent a couple of years writing OO perl code raw (i.e. the low level bless() based stuff that you normally only use for optimisations) to figure out which features of p3rl.org/Moose I couldn't live without - and came out the other side with a solid spec for p3rl.org/Moo which has since proven pretty much spot on as "what almost everybody needs almost all of the time."
Using their entire userbase as guinea pigs rather than only themselves is only going to work better for that.
(I'm not necessarily endorsing the choices, but I can see why they were made and why they were effective)