3 ms·
> I've seen more string implementations in C than I can count. Most of them were bad. I've written them over and over, myself. They're all bad, because the pro
by WalterBright 9y ago
> I've seen more string implementations in C than I can count. Most of them were bad.
I've written them over and over, myself. They're all bad, because the problems are nigh insurmountable:
1. C string literals don't know or care about your string package.
2. Once you step outside of the string package, you're incompatible with everything else.
3. C determinedly and resolutely devolves arrays into pointers. https://digitalmars.com/articles/b44.html https://digitalmars.com/articles/b44.html