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

Since errno is now thread local it's not the big deal it used to be, but it still contains no data, so returning objects is superior because it can provide error context and the error information can be chained together as flows up the stack. I was horrified at go's error handling policy until I learned multiple values could be returned from functions, that gets rid of the main problem with using error returns in C.


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

Search: