Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But there's an upside, no? There is no way to reference an undefined variable in go? So if the compiler is correct, so will be the result, and errors would be found compile time.

(written by a non-go-expert)



While you cannot reference an undefined variable in Go, you can still dereference nil pointers and invoke other operations that result in a panic (some of the standard library functions can panic).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: