5 ms·
> show how much you can easily improve C, with little work, and how many unsafe things in C are about lack of abstractions C has always badly needed built-in s
by poiuyt098 7y ago
> show how much you can easily improve C, with little work, and how many unsafe things in C are about lack of abstractions
C has always badly needed built-in strings (and arrays with size info, generally).
To save a byte, C designers committed The Most Expensive One-byte Mistake https://queue.acm.org/detail.cfm?id=2010365 https://queue.acm.org/detail.cfm?id=2010365
- phs318u 7y agoThanks for the link. Great analysis of a real sliding-doors moment.
- m463 7y agoA shortcoming (or outright failure) of C is the lack of an extensive "batteries included" library. Maybe not C + Knuth, but some way of portably advancing the language over time.
- ndesaulniers 7y agoWhy? So we could be stuck with horrible interfaces forever (most of string.h comes to mind)? No thanks.
- m463 7y agodon't you think it could evolve?
- hsaliak 7y agoglib
- m463 7y agoThat would be a start, but my though is more closely related to the C standard, not an add-on like boost.