Charles Forsyth <charles.fors...@gmail.com> once said: > On 22 November 2012 03:44, Bruce Ellis <bruce.el...@gmail.com> wrote: > > uintptr in all over the go packages because it is right. > > I hadn't noticed that particularly, but having grep'd the source, I > see it's also used for variables that are counters and numbers of > things.
Can you give an example? Nothing jumped out after a quick glance. > Is that right too? I suspect it's more out of expediency. Some other > type usage looks odd too. int32 where int would do. Curious. Such as? The only one I can think of is (*os.File).Fd returning a uintptr but that was changed from int for a reason (Windows). Cheers, Anthony