DEV Community

Discussion on: My Favorite Go 2 Proposals

Collapse
 
telecoda profile image
Rob Baines

Not a fan of the collect statement either.

The point of handling different errors is that you often have to do different things based upon where the code errors.

Bundling them into a single return delegates the responsibility (and understanding) to somewhere or someone else