sean / Result pattern with a closed error hierarchy (C#)
0 likes
0 forks
1 files
Last active 1 month ago
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.
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:
Newer
Older