You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `Either` type is closely related to `Optional`, but can have different "failure" states, other than only *empty*.
4
-
An `Either` can be used to properly return error messages from stream operations,
5
-
or as a lightweight alternative to exceptions.
4
+
`Either` can be used to collect error messages in stream operations,
5
+
or simply as a lightweight alternative to throwing an Exception.
6
6
7
7
There are several popular libraries that offer an `Either` type,
8
8
including [vavr](https://github.com/vavr-io/vavr), [fugue](https://bitbucket.org/atlassian/fugue/src/master/), and [lambda](https://github.com/palatable/lambda).
9
-
This particular `Either`might be easier to work with, especially if you're already familiar with `Optional`.
9
+
This particular `Either`is easy to work with if you're already familiar with `Optional`.
0 commit comments