All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists matching topic dotnet

Recently created
Least recently created
Recently updated
Least recently updated
sean's Avatar

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.
dotnet

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

Powered by Opengist ⋅ Load: 28ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文