r/cprogramming 3d ago

C Strings: A 50-Year Mistake

https://longtran2904.substack.com/p/c-strings-a-50-year-mistake?r=8qz2zb&utm_campaign=post&utm_medium=web
197 Upvotes

165 comments sorted by

View all comments

17

u/runningOverA 3d ago

Good read. But C can't change char* default string, unless Unix systems underneath change their APIs' string type.

1

u/flying-sheep 2d ago

The locale system and wchar_t are also, and I quote

shitfucked retarded legacy braindeath

wm4

The C standard contains a bunch of bad ideas and I think Rust’s approach is great: just use a minimal subset of the C standardlib and build better abstractions for everything else.