J
jacob navia
Le 29/10/11 00:42, Kaz Kylheku a écrit :
yeah sure, just crash. That's the best solution for any error.
Forgot something? Did a small mistake somewhere?
Crash everything, that's THE BEST SOLUTION FOR ALL ERRORS.
That way there isn't any way of writing something solid in C,
à nd you have to hear again...
"Go to C++, C is just fucked up"
Mr Kylheju asserts (without any arguments since his word suffices)
"This is not a good debugging aid", returning an error code. Crashing
is better.
And why? Couldn't those "who regard the above to be a bug" TEST for
an error code?
No, that would be too easy. Just crash. That's a good solution.
And why setting errno and returning an error code is "not very
meaningful extension"?
Because he says so.
This is neither a good debugging aid for those who regard the above to be a
bug, nor a very meaningful extension of behavior for those who don't.
yeah sure, just crash. That's the best solution for any error.
Forgot something? Did a small mistake somewhere?
Crash everything, that's THE BEST SOLUTION FOR ALL ERRORS.
That way there isn't any way of writing something solid in C,
à nd you have to hear again...
"Go to C++, C is just fucked up"
Mr Kylheju asserts (without any arguments since his word suffices)
"This is not a good debugging aid", returning an error code. Crashing
is better.
And why? Couldn't those "who regard the above to be a bug" TEST for
an error code?
No, that would be too easy. Just crash. That's a good solution.
And why setting errno and returning an error code is "not very
meaningful extension"?
Because he says so.