Hacker News new | past | comments | ask | show | jobs | submit login

I love the `return 0;`. Something sad has happened, but it's not the end of the world and everyone continues on.



I 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.


Personally, I would rather an ENOENT error. Seems ... fitting, somehow.

Well, either that or the Windows error STATUS_OBJECT_NAME_NOT_FOUND.


True enough. It's not an error; it's expected behavior.


Not quite: it's expected behavior, but still an error. In the logic of a testsuite, it's an XFAIL.


I interpreted it as returning "success". In a more global context than just the program at hand.


Having 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.


It 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: