logoalt Hacker News

nice_byte • today at 2:26 PM • 3 replies • view on HN

I've tried doing this for a few years and it just sucks ass. Just use c++ and templates if you need proper generic data structures. C is a defective language.


Replies

uecker • today at 4:16 PM

I start to like my experimental macro containers: https://codeberg.org/uecker/noplate/

Examples: https://godbolt.org/z/hecqs78xs https://godbolt.org/z/YnrcjKrEn

Not perfect, but also not really inferior to C++ in my opinion.

loeg • today at 4:12 PM

Or, in 2026, Rust (or Zig, I don't care).

0xbadcafebee • today at 4:19 PM

Can't be all that defective if it underpins most of the technology in the world

➕ show 2 replies