{"name":"type-c","repo":"stass/type-c","url":"https://midorreal.com/project/stass-type-c","repository":"https://github.com/stass/type-c","description":"C11 with the types C is missing: variants, options, generics and exhaustive matching","facts":{"license":{"value":"BSD-2-Clause","source":"https://github.com/stass/type-c","checked":"24 Nov 2026"},"language":{"value":"OCaml","source":"https://github.com/stass/type-c","checked":"24 Nov 2026"},"releases":{"value":"0","source":"https://github.com/stass/type-c/releases","checked":"24 Nov 2026"},"contributors":{"value":"1","source":"https://github.com/stass/type-c/graphs/contributors","checked":"24 Nov 2026"},"archived":{"value":"no","source":"https://github.com/stass/type-c","checked":"24 Nov 2026"}},"stars":21.0,"writeup":{"what_it_is":"Type-C is a language that extends C11 with tagged variants, exhaustive match checking, distinct types, generic types, and errors as values with try and defer. Its compiler, typec, translates Type-C into C and passes the result to a C compiler.","audience":"C programmers who want variants, exhaustive matching and related checks in their C code","claims":[{"kind":"specific","claim":"Compiler takes the command line of cc and hands generated C to the C compiler","excerpt":"Its compiler, `typec`, takes the command line of `cc`, turns Type-C into C that you can read, and hands that C to your C","status":"not_checked"},{"kind":"specific","claim":"A C11 file is already a valid Type-C file","excerpt":"A C11 file is already a Type-C file, so a program adopts it","status":"not_checked"},{"kind":"specific","claim":"Non-exhaustive match is reported as a compile error","excerpt":"Add a `Sub` case to `expr`, and the build stops at the","status":"not_checked"},{"kind":"specific","claim":"Adds no runtime, with no garbage collector or exceptions","excerpt":"No hidden allocation, garbage collector, exceptions","status":"not_checked"},{"kind":"specific","claim":"Installable with Homebrew on macOS or Linux","excerpt":"Install `typec` with [Homebrew](https://brew.sh), on macOS or Linux:","status":"not_checked"}],"alternatives":[],"written_by":"AI, from the project's README","date":"2026-11-24"},"why_now":null,"owner_supplied":null,"score":{"verdict":"real","hype":97,"reality":69,"gap":27,"momentum":null,"confidence":60,"version":"score-2.0","rule":"verdict-2.0","calculated_at":"2026-11-24T11:00:00+00:00","verdict_source":"rule"},"early_read":null,"changes":[{"date":"2026-11-14T08:31:56+00:00","text":"Repository created","source":"https://github.com/stass/type-c"}],"cite":"type-c is a GitHub project at https://github.com/stass/type-c written mainly in OCaml, described there as \"C11 with the types C is missing: variants, options, generics and exhaustive matching\".","attribution":"Data from Mid or Real, https://midorreal.com/project/stass-type-c, checked 24 November 2026. Attribution with a link is required.","still_real":null}