Comment

Comment by WalterBright

That falls over as soon as you integrate with anybody else's C code, including the operating system APIs, and with C string literals :-(

If it was as easy as you say, it would have happened.

And heaven knows I wrote my own string packages, one after the other, and so did everyone else. I eventually abandoned all of them. C's abstraction abilities are simply not good enough to do a decent string encapsulation.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton