3 ms·
There are ways to fix backwards compatibility, no? You introduce the new syntax, let it sit for several years, and then deprecate the old syntax. Would it truly
by jimbob45 4y ago
There are ways to fix backwards compatibility, no? You introduce the new syntax, let it sit for several years, and then deprecate the old syntax. Would it truly be that difficult to introduce a "fn" keyword? Also #includeHeader "myHeader.h" would solve the #pragma once problem.
I simply can't tell if we're not fixing this stuff out of laziness, out of fear, or because no one wants to admit that no one knows who's holding us back.
- constantcrying 4y agoC++ addresses most of your concerns already. The headers are C++23 iirc, somewhat similar to your proposal. I don't think you really understand what C actually is. C basically does not compete as a programming language. On a UNIX like it is the language of the kernel and as such its quirks inevitably represent the quirks of the kernel, you use C if you want to talk to the kernel. >Would it truly be that difficult to introduce a "fn" keyword? Yes, literally impossible. Just look at the controversy of C23 removing the almost entirely unused K&R function declaration syntax.