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

In Go, if one would ignore the error, it could result in a panic or the program would continue with some unexpected state. Go projects work on an honour system and either return Nils with errors or empty structs.


The same case in Go would’ve probably been a nil panic.




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

Search: