News for hackers. Stuff that matters.
Re:Errors are values by NateDad on Tuesday January 13, 2015 @09:11AM (#8879913)
The tradeoff is complexity. You need to define a maybe for your return value, which needs generics. Whereas Go gets 80% of the functionality with multiple returns which are like 10% odd the complexity (and are useful in other ways).
Re:Errors are values by pcwalton on Tuesday January 13, 2015 @09:52AM (#8880158)
You don't have to have generics to use enums for error handling any more than you need generics to use tuples for error handling. The thing you need is enums/algebraic data types/sum types.

See for example the first answer to this SO question on error handling in Swift, which doesn't use generics at all: http://stackoverflow.com/questions/24010569/error-handling-i...