public readonly struct Union<A,B,C>
{
public void Match(Action<A> onA, Action<B> onB, Action<C> onC);
}
The first use case is partition key values that can be one of { null, none, string, double, boolean} and we currently use object, which causes boxing and unboxing.
Add a
Union
Monad to the code base.Something like
The first use case is partition key values that can be one of {
null
,none
,string
,double
,boolean
} and we currently useobject
, which causes boxing and unboxing.