Repository navigation

#

discriminated-unions

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

C#
3710
8 个月前

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

C++
688
2 年前

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

Java
570
2 年前

Discriminated unions, pattern matching and partial applications for C#

C#
268
2 年前

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#
261
1 年前

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

C++
139
3 年前

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#
80
1 年前

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

C#
71
8 个月前

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

C#
55
4 天前

Helper function for exhaustive checks of discriminated unions in TypeScript

TypeScript
45
4 个月前

Tagged unions for Elixir. Just that.

Elixir
42
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
33
4 年前
JavaScript
29
8 年前

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

C#
22
3 个月前

Helps to easily JSON marshal / unmarshal tagged unions in go

Go
20
2 年前