in reply to Re: Re (tilly) 2: To sub or not to sub, that is the question?
in thread To sub or not to sub, that is the question?
BTW the shortcomings of C have a lot to do with my attitudes on throwing exceptions versus making it the responsibility of the called code to process possible error returns. For a particularly bad example, consider EAGAIN. It is well-documented. A ton of system calls can return it. But in practice it almost never gets returned, that aspect of code never gets tested, and so that aspect of code tends to be particularly buggy. The result? A Unix system runs fine for months on end. Then you put it under unusual load, once, and key long-running processes wind up with messed up states. Right when you least wanted that. And it isn't just one or two badly written programs that do that. There are lots of them out there.
Now there are reasons why EAGAIN exists, legitimate reasons. Given what a Unix kernel has to do, I am not going to argue that it shouldn't exist. But that is a reliability flaw that I don't think should be introduced lightly.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re (tilly) 4: To sub or not to sub, that is the question?
by dragonchild (Archbishop) on Jun 26, 2001 at 21:15 UTC | |
by tilly (Archbishop) on Jun 26, 2001 at 22:30 UTC | |
by dragonchild (Archbishop) on Jun 27, 2001 at 00:33 UTC | |
by tilly (Archbishop) on Jun 27, 2001 at 04:40 UTC | |
by dragonchild (Archbishop) on Jun 27, 2001 at 18:48 UTC |