3 ms·
> 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
by pcwalton 10y ago
> 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.
- _ph_ 10y agoBut you can not call methods on null interface values. In Go that is perfectly reasonable and safe to do.
- deleted 10y ago[deleted]
- pcwalton 10y agoThat doesn't matter. Calling methods and performing comparisons are two different things. I covered this here: https://news.ycombinator.com/item?id=12522941 https://news.ycombinator.com/item?id=12522941