News for hackers. Stuff that matters.
Re:Golang landmines by pcwalton on Sunday September 18, 2016 @01:59AM (#12524131)
> Or at least I haven't seen a proposal for how it could behave better.

Java and C# just have null interface values compare equal to null. I've never seen this cause problems and have never heard any complaints about this.

Re:Golang landmines by _ph_ on Sunday September 18, 2016 @05:01AM (#12524506)
But you can not call methods on null interface values. In Go that is perfectly reasonable and safe to do.
Re:Golang landmines by pcwalton on Sunday September 18, 2016 @12:40PM (#12525932)
That doesn't matter. Calling methods and performing comparisons are two different things. I covered this here: https://news.ycombinator.com/item?id=12522941