Open Source Libs
Find Open Source Packages
Open Source Libraries
👉
Discriminated Unions
18 Open Source Discriminated Unions Software Projects
Free and open source discriminated unions code projects including engines, APIs, generators, and tools.
Oneof
1241 ⭐
Easy to use F#-like ~discriminated~ unions for C# with exhaustive compile time matching
Derive4j
528 ⭐
Java 8 annotation processor and framework for deriving algebraic data types constructors, pattern-matching, folds, optics and typeclasses.
Mpark Variant
534 ⭐
C++17 `std::variant` for C++11/14/17
Davidarno Succinct
260 ⭐
Discriminated unions, pattern matching and partial applications for C#
Poica
243 ⭐
🧮 A research programming language on top of C macros
Codejam
235 ⭐
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
Eggs Cpp Variant
140 ⭐
Eggs.Variant is a C++11/14/17 generic, type-safe, discriminated union.
Imtools
110 ⭐
Fast and memory-efficient immutable collections and helper data structures
Paarthenon Variant
131 ⭐
Variant types in TypeScript
Fscodec
64 ⭐
F# Event-Union Contract Encoding with versioning tolerant converters supporting System.Text.Json and Newtonsoft.Json
Results
33 ⭐
Discriminated Unions including Maybe (an option type) and Result for javascript with fewer bugs
Union JS
27 ⭐
🏷️ Tagged unions for vanilla JavaScript!
Assert Never
28 ⭐
Helper function for exhaustive checks of discriminated unions in TypeScript
Headpats
14 ⭐
Pattern matching and tagged unions in JavaScript without new syntax.
Gozala Unreachable
13 ⭐
Utility function for exhaustiveness checking with typed JS (TS or Flow)
Sum Type
38 ⭐
A simple, serializable sum-type format
Exhaustivematching
43 ⭐
C# Analyzer Adding Exhaustive Checking of Switch Statements and Expressions
Dotvariant
35 ⭐
A type-safe and space-efficient sum type for C# (comparable to discriminated unions in C or C++)