News for hackers. Stuff that matters.
Re:On Go by Teckla on Sunday June 02, 2013 @09:14PM (#5810798)
Unlike C, Go isn't overloading what is returned

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.