OneOf

DUs

A library providing F# style discriminated unions for C#

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

GitHub

4k stars
50 watching
167 forks
Language: C#
last commit: 6 months ago
Linked from 1 awesome list

c-sharpdiscriminated-unionsdotnetcoref-sharp

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
louthy/language-ext A C# library that enables declarative and pure functional programming by providing extensions to the language. 6,553
polyadic/funcky-discriminated-union A source generator that automates the creation of Match methods for discriminated unions in C# 6
benaadams/ben.demystifier Improves error logging by rendering modern C# 7.0+ features in stack traces as source code 2,787
vkhorikov/csharpfunctionalextensions A library providing functional programming utilities and patterns for working with data in C#. 2,478
dotnetanalyzers/stylecopanalyzers Enforces coding standards and best practices in .NET projects using StyleCop rules 2,674
messagepack-csharp/messagepack-csharp Fast C# serializer for compact binary data 5,868
gvergnaud/ts-pattern A library that enables expressive and safe code branching with type inference for complex conditions 12,602
tweag/nickel A lightweight, configuration language designed to automate the generation of static config files for various systems and applications. 2,447
domn1995/dunet A source generator that creates discriminated union types in C# with support for generics and implicit conversions. 652
cysharp/memorypack A high-performance binary serializer designed to optimize serialization of .NET objects 3,410
fluentvalidation/fluentvalidation A .NET validation library that uses a fluent interface and lambda expressions to build strongly-typed validation rules. 9,159
antitypical/result Provides a robust and composable way to handle success/failure in Swift operations 2,508
microsoft/typechat Simplifies building natural language interfaces by defining types and using schema engineering to validate and process LLM responses 8,267
millsp/ts-toolbelt A comprehensive TypeScript library providing a wide range of type utilities to improve type safety and simplify complex type operations 6,787
jet/fscodec Provides a minimal interface for serialization and deserialization of events in event-sourcing systems 82