Last active 3 months ago
dotnet
A way to make a method's failure modes part of its return type without OneOf's positional Tn tedium or a flat opaque Error blob. Emulates a discriminated union using a sealed record hierarchy.
0
0
1
Result pattern with a closed error hierarchy (C#)
A way to make a method's failure modes part of its return type without OneOf's
positional Tn tedium or a flat opaque Error blob. Emulates a discriminated
union using a sealed record hierarchy.
What to call it
There is no single name. It is three named things stapled together: