News for hackers. Stuff that matters.
Re:Having fun with Go's nil, interfaces and errors by catnaroek on Saturday September 17, 2016 @06:19PM (#12522813)
You can call a method on a null value in Java and C#. It's perfectly defined behavior: throwing a NullPointerException.
Re:Having fun with Go's nil, interfaces and errors by Vendan on Saturday September 17, 2016 @06:26PM (#12522845)
yes, and it's a completely different behavior then Go, where it's perfectly defined as well: you call that method with a nil pointer as the receiver. Please don't act like those 2 behaviors are anywhere near similar.