Re:The C23 edition of Modern C is now available for free
by pjmlp on Wednesday October 16, 2024 @03:32AM
(#41856506)
There is enough material in C, and related compiler extensions, to have similar discussions, starting from where to place brackets.
Re:The C23 edition of Modern C is now available for free
by rbanffy on Wednesday October 16, 2024 @02:28PM
(#41862159)
Maybe the C24 will define the One Right Way.
Re:The C23 edition of Modern C is now available for free
by Arch-TK on Wednesday October 16, 2024 @09:01AM
(#41858603)
> C library maintainers to support the people how want to compile their C code with a C++ compiler.
Just tell them to go away.
Trying to write the subset of C and C++ is a fool's errand.
Re:The C23 edition of Modern C is now available for free
by jstarks on Wednesday October 16, 2024 @11:11AM
(#41860015)
No inline functions in library headers, then.
Re:The C23 edition of Modern C is now available for free
by flohofwoe on Wednesday October 16, 2024 @12:08PM
(#41860766)
Inline is mostly pointless in C anyway though.
But it might be a minor problem for STB-style header libraries.
It's not uncommon for C++ projects to include the implementation of an STB-style header into a C++ source file instead of 'isolating' them in a C source file. That's about the only reason why I still support the common C/C++ subset in my C libraries.
For the cutting edge I would recommend Zig btw, much less language complexity than both modern C++ and Rust.
One good but less visible side effect of C23 is that it harmonizes more syntax with C++ (like ... = {} vs {0}) which makes it a bit less annoying for us C library maintainers to support the people how want to compile their C code with a C++ compiler.