From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 22 Nov 2012 04:39:10 -0800 From: Anthony Martin To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20121122123850.GA8106@dinah> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [9fans] go forth and ulong no more! Topicbox-Message-UUID: e027da7e-ead7-11e9-9d60-3106f5b1d025 Charles Forsyth once said: > On 22 November 2012 03:44, Bruce Ellis 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