/generi.c

[WIP] Generic data structures and sum types with pattern matching.

Primary LanguageCMIT LicenseMIT

Originally this was supposed to just be a little lib where I implement a bunch of data structures, but try to do it generically. Now I implemented algebraic data types and I think this is starting to get out of control. For how pattern matching should look like I took some inspo from https://github.com/Hirrolot/metalang99. Then I realized that the way I work with `__VA_ARGS__` looks a little bit like Lisp.

Architecture graph for generic structs and traits

architecture.png