Re:Simple Dynamic Strings library for C, compatible with nul...
by phs318u on Tuesday December 03, 2019 @05:11PM
(#21697372)
Thanks for the link. Great analysis of a real sliding-doors moment.
Re:Simple Dynamic Strings library for C, compatible with nul...
by m463 on Tuesday December 03, 2019 @06:08PM
(#21697870)
A 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.
Re:Simple Dynamic Strings library for C, compatible with nul...
by ndesaulniers on Tuesday December 03, 2019 @07:15PM
(#21698351)
Why? So we could be stuck with horrible interfaces forever (most of string.h comes to mind)? No thanks.
Re:Simple Dynamic Strings library for C, compatible with nul...
by m463 on Wednesday December 04, 2019 @01:00AM
(#21699964)
don't you think it could evolve?
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