Re: [go-nuts] Nested struct initialisation

2017-09-29 Thread arod . louis
Thank you! This is exactly what I was looking for. Le vendredi 29 septembre 2017 15:57:28 UTC+2, Ian Lance Taylor a écrit : > > On Fri, Sep 29, 2017 at 6:55 AM, > > wrote: > > > > Do you know why the compiler does not infer nested struct type? Was > there > > any discussion about that? > >

Re: [go-nuts] Nested struct initialisation

2017-09-29 Thread Ian Lance Taylor
On Fri, Sep 29, 2017 at 6:55 AM, wrote: > > Do you know why the compiler does not infer nested struct type? Was there > any discussion about that? > > I find myself enjoying nested struct a lot when programming in Go. But, the > initialisation is so cumbersome that I always end up removing the ne

[go-nuts] Nested struct initialisation

2017-09-29 Thread arod . louis
Hello gophers, Do you know why the compiler does not infer nested struct type? Was there any discussion about that? I find myself enjoying nested struct a lot when programming in Go. But, the initialisation is so cumbersome that I always end up removing the nested struct and giving a longer na