Anyone who calls Go a memory safe language has never used Go. This is a bullshit...
Ben Cox @ben@s.djehuti.com
Anyone who calls Go a memory safe language has never used Go. This is a bullshit garage-league clown-show language.
if x == nil {
fmt.Println("x is nil")
} else {
fmt.Printf("x is non-nil and its value is %v\n", x)
}
This snippet of code can print x is non-nil and its value is <nil>. And if you subsequently call a method on x, it will crash, with a SIGSEGV, trying to dereference a nil pointer.
(Don't explain this to me. I know the party-line explanation. Being intentional isn't the same as it being a competent design choice.)