WeWorkBuddy

Show HN: Type-C – variants, options, generics and pattern matching for C

I love C, but often using it for parsing, tree walking or complex error handling leads to spaghetti code. Of course there is Swift, Ocaml or Rust for situations like that, but then you are either forced to convert the entire codebase, or add a runtime library or go through the pain of bridging C to the new language. Sometimes there are no compilers for the target architecture too when you are working on embedded stuff. This is where Type-C comes in. It works as a preprocessor like TypeScript and

Read original source
Source reference for Show HN: Type-C – variants, options, generics and pattern matching for C. Screenshot not yet available.
Source record · preview pending · news.ycombinator.comOpen the source for the full page.

Source record

Recorded metrics

points · 23 votes
2026-11-24 01:16:42.142Z
cumulative since publication

Research analysis

Project record

Repository: stass/type-c. Source account: I love C, but often using it for parsing, tree walking or complex error handling leads to spaghetti code. Of course there is Swift, Ocaml or Rust for situations like that, but then you are either forced to convert the entire codebase, or add a runtime library or go through the pain of bridging C to the new language. Sometimes there are no compilers for the target architecture too when you are working on embedded stuff. This is where Type-C comes in. It works as a preprocessor like TypeScript and

Observed adoption & comparisons

Source votes: 23 votes (Nov 24, 2026 UTC; cumulative since publication) Recent records to compare: “ivall/xcl” (Trendshift, Nov 24, 2026); “pingdotgg/t3code” (Trendshift, Nov 24, 2026). Shared themes are navigation hints; they have not been verified as the same need or independent corroboration.

Adoption decision

Evaluate it against the tool or manual workflow it would replace. The stored record supports discovery; it does not yet establish reliability, lower operating cost or commercial adoption.

Unverified requirements

Not verified: license permissions, required hardware, installation steps, maintenance status and a representative task with its failure cases.

Next test

Choose one real task and a current alternative. Record the commit, environment, input, output, elapsed time and failure behavior; retain the result before recommending adoption.