Open
Description
The Filter::or
combinator returns an Either<A, B>
type, but it currently isn't exported publicly, making it impossible to match on the variants. It does implement Reply
, making the full framework function, but it's currently impossible to use or
to retrieve either A or B.
Some reasons why it hasn't been exposed yet:
- It may be beneficial to change from
Either<A, B>
to instead more likeCoprod<A, Coprod<B, Never>>
. The benefit of doing this is that nestingEither<A, B>
will result in the enums getting fatter and fatter,where as the(turns out I was wrong aboutCoprod
approach makes unlimited nestedor
s still only need space for 1 variant tagCoprod
, it also grows the size).