News for hackers. Stuff that matters.
Re:Having fun with Go's nil, interfaces and errors by pcwalton on Saturday September 17, 2016 @05:26PM (#12522547)
The behavior of Go's nil does not make the language any simpler to implement in any meaningful sense. The only thing it affects at the machine level is which cmp instructions are generated.
Re:Having fun with Go's nil, interfaces and errors by brandonbloom on Saturday September 17, 2016 @07:54PM (#12523169)
I won't defend the weird behavior of equality comparisons to nil, that definitely seems wrong. I was mostly just addressing the notion that a language needs a formal specification and must fully abstract the machine to be useful or at least not worthy of ridicule.