Skip to content

weebs/du-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

du-routing

An example of how to emulate a piece of OCaml's GADTs functionality using F#'s ADTs and generic constraints. This allows you to create a function who's return type is based upon the union case given as an argument, and is known at compile time, using the help of an intermediate "fetch" function.

This can be used for emulating function overloading in modules, or as a way to communicate between two processes with a defined API that includes response types.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages