3 ms·
One example would be to return a single value from a method containing Either the value you want, or the error. That way you could chain a bunch of method calls
by eweise 6y ago
One example would be to return a single value from a method containing Either the value you want, or the error. That way you could chain a bunch of method calls together and just check for errors at the end instead of checking after each method call.