5 ms·
I love the `return 0;`. Something sad has happened, but it's not the end of the world and everyone continues on.
by stevelosh 15y ago
I love the `return 0;`. Something sad has happened, but it's not the end of the world and everyone continues on.
- breadbox 15y agoTrue enough. It's not an error; it's expected behavior.
- JoshTriplett 15y agoNot quite: it's expected behavior, but still an error. In the logic of a testsuite, it's an XFAIL.
- azelfrath 15y agoI think "return -1;" would have been appropriate =( But seriously, this page actually brought a tear to my eye. It's like all the C code in the world right now feels a little less cheerful... EDIT: But yes, there is something oddly inspiring about the world just moving on.
- someone13 15y agoPersonally, I would rather an ENOENT error. Seems ... fitting, somehow. Well, either that or the Windows error STATUS_OBJECT_NAME_NOT_FOUND.
- jerf 15y agoI interpreted it as returning "success". In a more global context than just the program at hand.
- alperakgun 15y agoHaving read K & R long time ago, and enjoyed the concise book, it is a sad day. All C programs in the world must be returning success today.
- watmough 15y agoIt may be concise, but it is incredibly dense. I'm not sure there's a unnecessary word, let alone paragraph. It definitely rewards persistent study, I've been programming for years, and I still learn something every single time I dip into it.