Type-C
github.com · Open source · Active
Variants, options, generics and pattern matching for C
- Developer tools
- Open source
- OCaml
- Day-7 check
- compiler
- pattern matching
- ocaml
- c language extension
- c pattern matching
- c variants
- c to c translator
- typed c
- Stars
- 30
- Forks
- 1
- Open issues
- 0
- Last commit
- Found
- 8 days ago
GitHub figures as of . They are context, not a ranking.
Type-C extends C11 with variants, options, generics and exhaustive matching, aimed at cleaner parsing, tree walking and error handling. The tool is written in OCaml, so it appears to translate to ordinary C.
Repository description on GitHub: “C11 with the types C is missing: variants, options, generics and exhaustive matching”
What it does
- Adds variants and exhaustive match checks to C11
- Adds distinct types for ids and units
- Generic types and errors as values with try and defer
- Compiles Type-C to readable C that your C compiler builds
Good for
- Clean up C parsing or tree-walking code
- Adopt the language one file at a time in a C project
- Handle errors in C with try and defer
Suits: C developers who want variants and pattern matching.
Worth knowing: Checked mode and some additions are designed but not built yet
What you can try
Clone the repo and read the README for build steps.
Install
brew install stass/tap/typecTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw Type-C on , when stass posted it to Show HN. GitHub listed no published releases for stass/type-c when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 52 points, 22 comments. API record
Checked .
Day 30 due 22 Dec 2026
Kip will recheck the sources then and record what it finds here.
Release timeline every entry links to its source
- Repository created on GitHub: stass/type-c
- Found: stass posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
Quick answers
- When was Type-C released?
- No dated release record is available. Kip found it on Show HN on 22 Nov 2026.
- Is Type-C open source?
- Its source is public on GitHub at stass/type-c under the BSD-2-Clause licence.
- What does Type-C run on?
- Command line, macOS, Linux.
- Is Type-C free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is Type-C still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | stass/type-c REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-50602561. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.