Repository navigation

#

discriminated-unions

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

C#
3867
1 年前

C++17 `std::variant` for C++11/14/17

C++
697
3 年前

Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.

Java
574
3 年前

Discriminated unions, pattern matching and partial applications for C#

C#
268
3 年前

Set of handy reusable .NET components that can simplify your daily work and save your time when you copy and paste your favorite helper methods and classes from one project to another

C#
262
1 年前

Eggs.Variant is a C++11/14/17 generic, type-safe, discriminated union.

C++
140
4 年前

F# Event-Union Contract Encoding with versioning tolerant converters supporting System.Text.Json and Newtonsoft.Json

F#
82
2 个月前

C# Analyzer Adding Exhaustive Checking of Switch Statements and Expressions

C#
82
2 年前

A type-safe and space-efficient sum type for C# (comparable to discriminated unions in C or C++)

C#
73
1 年前

Provides an easy way to implement Smart Enums, Value Objects and Discriminated Unions in .NET

C#
67
14 天前

Option and Result types for C# to simplify functional programming.

C#
48
11 天前

Helper function for exhaustive checks of discriminated unions in TypeScript

TypeScript
46
8 个月前

Tagged unions for Elixir. Just that.

Elixir
43
1 年前

A simple, serializable sum-type format

JavaScript
41
1 年前

Discriminated Unions including Maybe (an option type) and Result for javascript with fewer bugs

JavaScript
32
5 年前
JavaScript
28
8 年前

A stinky but tasty hack to emulate F#-like discriminated unions in C#

C#
22
7 个月前