Davide Giuseppe Farella
Either
Javier
class EitherException(val reason: Error) when { xxx -> throw EitherException(Xxx) yyy -> throw EitherException(Yyy) // Either.Compaion fun Try(block: () -> T) = try { Right(...) } catch (e: EitherException) Left(...) } fun login(...) = Either.Try { <http://client.post|client.post>(...) }
A modern programming language that makes developers happier.