3 ms·
> All of those should be generic, but aren't. They aren't because the prevailing attitude is "what do you need generics for? Just do a cast!" The issue is th
by xienze 9y ago
> All of those should be generic, but aren't.
They aren't because the prevailing attitude is "what do you need generics for? Just do a cast!"
The issue is the Go developers are unwilling to consider generics until someone can come up with a problem that absolutely, positively cannot be solved without generics. And of course there isn't one.
- bpicolo 9y agoI mean, having to cast after every single call to heap is a problem. Go is turing complete already, so all problems are already able to be solved. :)