3 ms·
Thanks for the feedback! I did that in an effort to be fair to Go. You can write a generic Hashable interface in Go, so I started with that. The very next exam
by wyager 11y ago
Thanks for the feedback!
I did that in an effort to be fair to Go. You can write a generic Hashable interface in Go, so I started with that. The very next example is why you can't make a generic sum over a list in Go. I didn't want people to get the idea that Go didn't support any sort of genericism at all.