Otto Moerbeek wrote: > I do not agree. You only have to remeber "that function does sensible > error checking" and you do not have to remember at each spot which > condition is the right one. > > Function are the major way of structuring code, use them.
It's not the idea of functions that I'm questioning. I don't think making a function for a simple if (x) then errx(...); condition is sane, though. I'm a bit biased at the moment because I'm searching through the tree for "creative" replacements for errx() et al.