Why do people return Result<T>?

114 points ModernCoder 45 comments

Why would you do that and abstract away the error type you're returning? Why do people do <T> instead of <T, E>?