C’s designated initializers give us named arguments
1 comments · c, programming
- Comments8
1 comments · c, programming
Story details from Lobsters ↗ · linked article on quuxplusone.github.io.
C’s designated initializers give us named arguments was first seen on Lobsters · Hottest on Nov 17, 2026. Since then it has appeared in 51 checks on 2 different days. Its best position was #10 of 25, reached on Nov 17, 21:21 UTC. It dropped off the list after Nov 18, 17:51 UTC. The same link also trended on Hacker News, which raises its cross-platform score.
Position on Lobsters · Hottest at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Lobsters.
| List | Best | Days | Checks | Last seen |
|---|---|---|---|---|
| Lobsters · Hottest | #10 | 2 | 51 | |
| YHacker News · Front page C's designated initializers give us named arguments | same link | |||
A few top-level comments from Lobsters, shortened. Read the full thread on Lobsters.
the author of the article is a known rapist who got caught with child porn years ago. im not sure what the criteria for banning websites is on lobsters. but it'd be lovely if i could never see his name or blog again.
I think twitch streamer Tsoding is using this pattern a lot in his C projects, or at least that's where I've seen it the first time. Here it is in his [`nob.h`](https://github.com/tsoding/nob.h/blob/main/nob.h#L630) helper.
This is even nicer in C++. When you do this in C++, your arguments class can provide default values for everything, so unspecified values are default initialised to something sensible. It's also easier to version because you can create a new version of the structure and have it in the header with different overloads…
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. It was last on the list on Nov 18, 17:51 UTC, after 2 days of trending.
#10 on Lobsters · Hottest, on Nov 17, 21:21 UTC. Trendoday checks this list every 30 minutes.
It was first seen on Nov 17, 2026 and has been on the list on 2 days (51 checks) since.