Trendoday

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

discuss

  • Points48
  • Comments23
–Rank now
#15Peak rank
3Days on list
29Score · 7d
Nov 23, 2026First seen
Rank · 7 days

On Hacker News

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…

Points
48
Comments
23
Submitted by
stass
Posted
Nov 22, 2026
Site
github.com

Story details from Hacker News ↗ · linked article on github.com.

Trending history

Show HN: Type-C – variants, options, generics and pattern matching for C was first seen on Hacker News · Front page on Nov 23, 2026. Since then it has appeared in 77 checks on 3 different days, across 3 lists (Hacker News · Front page, Hacker News · Show HN, Hacker News · Show HN · this week). Its best position was #15 of 30, reached on Nov 23, 22:29 UTC. It dropped off the list after Nov 25, 13:51 UTC.

Rank history

Position on Hacker News · Front page at every check (lower is better).

#1#11#20#30 22:2923:4400:5902:1403:29 Nov 23, 22:29 UTC · #15Nov 23, 22:44 UTC · #20Nov 23, 22:59 UTC · #26Nov 23, 23:29 UTC · #30Nov 23, 23:44 UTC · #25Nov 23, 23:59 UTC · #26Nov 24, 00:14 UTC · #23Nov 24, 00:29 UTC · #25Nov 24, 00:44 UTC · #27Nov 24, 00:59 UTC · #26Nov 24, 01:14 UTC · #23Nov 24, 01:29 UTC · #26Nov 24, 01:44 UTC · #27Nov 24, 01:59 UTC · #27Nov 24, 02:14 UTC · #27Nov 24, 02:29 UTC · #28Nov 24, 02:44 UTC · #30Nov 24, 02:59 UTC · #29Nov 24, 03:14 UTC · #30Nov 24, 03:29 UTC · #29

Last 14 days

Best rank per day (UTC).

Nov 12today

Metric history

Platform metric as reported by Hacker News.

0112233 22:2923:4400:5902:1403:29 Nov 23, 22:29 UTC · 5Nov 23, 22:44 UTC · 7Nov 23, 22:59 UTC · 7Nov 23, 23:29 UTC · 10Nov 23, 23:44 UTC · 13Nov 23, 23:59 UTC · 14Nov 24, 00:14 UTC · 19Nov 24, 00:29 UTC · 20Nov 24, 00:44 UTC · 20Nov 24, 00:59 UTC · 22Nov 24, 01:14 UTC · 24Nov 24, 01:29 UTC · 25Nov 24, 01:44 UTC · 26Nov 24, 01:59 UTC · 26Nov 24, 02:14 UTC · 28Nov 24, 02:29 UTC · 28Nov 24, 02:44 UTC · 28Nov 24, 02:59 UTC · 29Nov 24, 03:14 UTC · 30Nov 24, 03:29 UTC · 33

Where it trended

ListBestDaysChecksLast seen
Hacker News · Front page#15220
Hacker News · Show HN#15119
Hacker News · Show HN · this week#15238

From the discussion

A few top-level comments from Hacker News, shortened. Read the full thread on Hacker News.

I like it, but I have a couple of questions. Why C11? We're in 2026, we should target C23 at least, with a forward look at C2y. Why the keyword "type"? Can't the same functionality be added within a typedef statement? Is there a reason why "|" can't be recognized wherever a type is expected? And finally, the name…

Nice that dropping a `result` is a compile error unless you explicitly cast it to void, unlike C's default of silently ignoring return codes.

> Of course there is Swift, Ocaml or Rust Presumably C++ is the first thing you should mention.

Questions

Is Show HN: Type-C – variants, options, generics and pattern matching for C trending on Hacker News right now?

Not at the moment. It was last on the list on Nov 25, 13:51 UTC, after 3 days of trending.

What is the highest rank Show HN: Type-C – variants, options, generics and pattern matching for C reached?

#15 on Hacker News · Front page, on Nov 23, 22:29 UTC. Trendoday checks this list every 15 minutes.

How long has Show HN: Type-C – variants, options, generics and pattern matching for C been trending?

It was first seen on Nov 23, 2026 and has been on the list on 3 days (77 checks) since.

How much discussion did it get on Hacker News?

48 points and 23 comments; submitted by stass on Nov 22, 2026.