Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There should only be one way to succeed. Returning 0 for success makes complete sense. You can add layers of macros or enums to sugar coat this but retuning 0 for the success case makes complete sense


Yes, but if you use "magic constants" in your code, you will flunk code review in any halfway competent shop.

Always use the constant symbols.


Flunked for returning 0 from main() in C? Not sure that's a competent shop.


Have you seen any syscall implementation?




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

Search: