News for hackers. Stuff that matters.
Re:The Logical Disaster of Null by cdoxsey on Thursday May 10, 2018 @03:02AM (#17036944)
Ironically you can make nullsafe methods in Go

    type X struct{}

    func (x *X) y() {}

    func main() {
    	var x *X = nil
    	x.y() // no error
    }
Also its not unsafe. Go doesn't allow unsafe memory access unless you use the unsafe package.

It is incorrect though. An Go does allow you to write bugs.

There are no comments on this comment yet.