News for hackers. Stuff that matters.
Re:Go at SoundCloud by chengiz on Tuesday July 24, 2012 @11:56AM (#4286211)
How does it force you to handle errors? Cant you choose to ignore the return value?
Re:Go at SoundCloud by osi on Tuesday July 24, 2012 @12:19PM (#4286313)
You can absolutely ignore it. Or in the case of the Write call, which only returns an error, just never assign it.

go's error handling is nice, but since it doesn't force it on you, it leads to errors of omission.

Re:Go at SoundCloud by skybrian on Tuesday July 24, 2012 @06:56PM (#4288489)
If the function returns a useful value and an error then you'll have to assign to error to "_" to ignore it, which is a pretty big hint to the reviewer that it's being suppressed. So in cases where you want to "force" error checking, returning multiple values is probably good enough.