[go-nuts] Re: go/types equality rules are incredibly confusing

2016-10-01 Thread T L
On Sunday, October 2, 2016 at 12:25:02 AM UTC+8, Nate Finch wrote: > > That's a tutorial, not documentation. It would have been useful to have > that information in the godoc. > > I agree it was a mistake to use a Type as a map key, but the fact that it > does work for some Types was what

[go-nuts] Re: go/types equality rules are incredibly confusing

2016-10-01 Thread Nate Finch
That's a tutorial, not documentation. It would have been useful to have that information in the godoc. I agree it was a mistake to use a Type as a map key, but the fact that it does work for some Types was what was confusing (along with same types from different loaders not being Identical).

[go-nuts] Re: go/types equality rules are incredibly confusing

2016-10-01 Thread T L
On Saturday, October 1, 2016 at 11:50:24 PM UTC+8, Nate Finch wrote: > > There are a couple details to how go/types.Type values compare that I > think need better documentation. Ideally there would be some programmatic > improvement, but that might not be possible. > > First: go/types.Type