Re:How to avoid the assignment statement
by loup-vaillant on Monday July 12, 2010 @05:59AM
(#1507361)
In general, I prefer not to have to check for arguments. In your case, the right™ way to do it is probably monads: they help you separate the error checking from the "normal" path.
But that's C code, so I have to agree with you.