News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by mdlayher on Wednesday June 17, 2020 @03:47PM (#23555867)
The alternative is to do something like:

type Int int

func (i Int) Hash() uintptr { /* do the hash */ }

But I didn't want to deal with it in this code. I agree that it isn't optimal and would be curious to see if the situation can be improved.

There are no comments on this comment yet.