News for hackers. Stuff that matters.
Re:Golang landmines by amscanne on Sunday September 18, 2016 @04:07AM (#12524386)
Interfaces aren't pointers, they are a value type (it's a tuple as you describe).

The distinction for typed nil is useful because some receivers may work with a nil value. This whole thread enumerates the disadvantages pretty clearly, but I just wanted to point out that it _can_ be useful.

I do think compiler warnings would be helpful when this kind of thing happens implicitly, to prevent new language users from being confused for extended periods.

There are no comments on this comment yet.