News for hackers. Stuff that matters.
Re:Why Go's Error Handling Is Awesome by pcl on Tuesday July 07, 2020 @09:13AM (#23758838)
The idiom is to return two values: the desired return value, and also an error value. Go has support for multiple return values, and easy syntax for assigning those positional return values to variables at the call site.

There are no comments on this comment yet.