Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: