r/programming • • Oct 19 '09

djb

http://www.aaronsw.com/weblog/djb
96 Upvotes

129 comments sorted by

View all comments

Show parent comment

1

u/zoinks Oct 20 '09 edited Oct 20 '09

The whole idea of errno is a mistake in my opinion

5

u/geocar Oct 20 '09

Agreed, although if you don't mind my asking, what would you replace it with? An extra argument? Using part of the result-domain (e.g. -EINVAL instead of errno=EINVAL;return -1? Signals? Exception handlers embedded in the call frame?

I think you can tell a lot 'bout a man based on how he answers that question.

3

u/daver Oct 20 '09

Extra argument. But that probably tells you a lot about me.