Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on On Go. Parent comment
In C, you can write code that doesn't overload errors and return values; e.g.,
err = someFunction(&returnValue, param1, param2, param3);
I'm not saying this is common -- and in fact the standard C library does a lot of the overloading you're talking about -- but for your own code and functions, you can separate out errors and return values, as shown above.
There are no comments on this comment yet.
In C, you can write code that doesn't overload errors and return values; e.g.,
err = someFunction(&returnValue, param1, param2, param3);
I'm not saying this is common -- and in fact the standard C library does a lot of the overloading you're talking about -- but for your own code and functions, you can separate out errors and return values, as shown above.