4 ms·
As someone who works in C, C actually needs less in the standard library. What it actually needs is a proper import/module/build system to make it easier to sti
by Veserv 3y ago
As someone who works in C, C actually needs less in the standard library. What it actually needs is a proper import/module/build system to make it easier to stitch code and librarys together. The prevalence of header-only librarys attests to what a total mess it all is.
A proper import system would massively reduce the amount of wheel reinventing because then it would not be fiendishly difficult to actually reuse code in a coherent way. Only after that does it make sense to start quibbling about what is included where and by default.
- packetlost 3y agoI'll second this. The biggest thing I think C needs (besides what the author of the linked article is saying) is proper namespaces and modules. It holds the language back so much. Tagged union types would also be really, really nice.
- Gibbon1 3y agoI've come around to the idea that first class types, tagged unions, and boxing and unboxing phat pointers would improve the language immensely. Also the standard lib and POSIX reminds me of a homeless persons shopping cart full of precious stuff they picked off the street.