Re: [go-nuts] Question - type assertion x.(*T)

2016-06-28 Thread Michael Wain
Why would I use *T over just T ? Michael > On 28 Jun 2016, at 10:05, Jan Mercl <0xj...@gmail.com> wrote: > > On Tue, Jun 28, 2016 at 11:02 AM Michael Wain > wrote: > > > So a := x.(*T) is the same as a := x.(T) ? > > No, because T and *T are distinct ty

Re: [go-nuts] Question - type assertion x.(*T)

2016-06-28 Thread Michael Wain
So a := x.(*T) is the same as a := x.(T) ? Michael > On 27 Jun 2016, at 23:33, Axel Wagner wrote: > > Hm? It's this syntax: > https://golang.org/ref/spec#Type_assertions > using *T as the type. > >> On Mon, Jun 27, 2016 at 11:08 PM, wrote: >> Hi, >> >> Reading through gaoling spec regarding