mcintyre321/OneOf

Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching

C#Otherc-sharpdotnetcoref-sharpdiscriminated-unions
This is stars and forks stats for /mcintyre321/OneOf repository. As of 29 Apr, 2024 this repository has 2844 stars and 139 forks.

OneOf "Ah! It's like a compile time checked switch statement!" - Mike Giorgaras Getting Started install-package OneOf This library provides F# style discriminated unions for C#, using a custom type OneOf<T0, ... Tn>. An instance of this type holds a single value, which is one of the types in its generic argument list. I can't encourage you enough to give it a try! Due to exhaustive matching DUs provide an alternative to polymorphism when you want to have a method with guaranteed behaviour-per-type...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
UglyToad/PdfPigC#Other1.2k01830
VitoVan/calmCommon LispCShell84030
ChicoState/PantryNodeTypeScriptEJSJavaScript30350
cloudnative-pg/cloudnative-pgGoShellOther2.2k01570
haskell/play-haskellHaskellShellTypeScript980110
CollaboraOnline/onlineJavaScriptC++TypeScript1.3k05510
owncloud/androidKotlinJavaOther3.6k+23k0
achrafelkhnissi/alx-checkerC++ShellCMake37070
Anamcoollzz/laravel-8-templatePHPBladeHTML80+134+1
honeycombio/example-greeting-serviceElixirGoJava16040