News for hackers. Stuff that matters.
Re:Go 1.3 is released by pcwalton on Thursday June 19, 2014 @02:38PM (#7917603)
You'd have the same effect (you don't know what specific call failed) if all of the comment lines said "return err", which is a common pattern in Go. The Scala approach mentioned is just sugar for that. You can of course handle each case separately if you want in Scala, just as you can in Go, but the common pattern has sugar.
Re:Go 1.3 is released by frowaway001 on Thursday June 19, 2014 @02:47PM (#7917658)
What? Actually, absolutely not.

If you only care about whether something succeeded use Option, if you care about the error use Either, Validation, etc.

Just pick the right Monad.

Re:Go 1.3 is released by pcwalton on Thursday June 19, 2014 @06:18PM (#7918584)
Yes, I agree, but I don't see how that's related to what I said.
Re:Go 1.3 is released by frowaway001 on Friday June 20, 2014 @09:02AM (#7920484)
Then maybe don't comment?