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

Someone posted this chart[0] on the mailing list[1].

It pretty-prints a chart that shows the different nil comparisons, and what they result in (true, false, or n/a being an error caught by the compiler).

[0]: http://play.golang.org/p/7GohUdfIsD [1]: https://groups.google.com/d/topic/golang-nuts/zvqvEZk53Q0/di...



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

Search: