by nemetroid · 6y ago · 0 comments
Surely the demo works equally well without this extra constraint? If the demo had a generic function for creating a reversible mapping it would have been necessary, but as it stands, this extra constraint comes across as avoiding having to write the less aesthetically pleasing
type Table(type K comparable, V interface{}) struct {
...