News for hackers. Stuff that matters.
Re:Errors are values by NateDad on Tuesday January 13, 2015 @09:02AM (#8879848)
You can ignore error values returned just like you can ignore the numeric value returned from atoi. That's the point. They're just values. You are the programmer, it's your job to decide what to do with any particular value returned by a function.
Re:Errors are values by prodigal_erik on Tuesday January 13, 2015 @12:20PM (#8881154)
It's also my job to decide what the square root of "fish" should be. What I do is use a declaration to mechanically verify that cannot ever happen. I never ever want to silently ignore an error, so why shouldn't I be able to declare that as well?