Re: [go-nuts] Re: Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Vincent Rischmann
Thanks, that explains it. On Fri, Dec 22, 2017, at 6:28 PM, Volker Dobler wrote: > See https://golang.org/doc/faq#nil_error > > V. > > On Friday, 22 December 2017 17:37:40 UTC+1, Vincent Rischmann wrote:>> Hello, >> >> while refactoring some code I encountered something strange regarding >> r

[go-nuts] Re: Weird behavior of a nil check after variable redeclaration

2017-12-22 Thread Volker Dobler
See https://golang.org/doc/faq#nil_error V. On Friday, 22 December 2017 17:37:40 UTC+1, Vincent Rischmann wrote: > > Hello, > > while refactoring some code I encountered something strange regarding > redeclarations. > > Here is an example: https://play.golang.org/p/b7Bp2w2fWwk > Somehow after re