Type-C – variants, options, generics and pattern matching to C, like TS
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
Type-C is an early language that extends C11 with closed variant types, exhaustive pattern matching, distinct types, generics, and errors as values using try and defer. Its compiler, typec, accepts cc's command line, translates Type-C into readable C, and passes that to the system C compiler.