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

> If you do not wish to check the error code, you must be explicit.

Or you can ignore all the return values, like in your fmt.Println() example.

> I say "partial" because functions that only return 1 value can ignore the return implicitly:

fmt.Println() returns two values, one of which is of the error type. You can't ignore just one of those values, but you can ignore both of them.



Correct. Thank you.




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

Search: