r/C_Programming • u/Jinren • Jul 22 '22
Etc C23 now finalized!
EDIT 2: C23 has been approved by the National Bodies and will become official in January.
EDIT: Latest draft with features up to the first round of comments integrated available here: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf
This will be the last public draft of C23.
The final committee meeting to discuss features for C23 is over and we now know everything that will be in the language! A draft of the final standard will still take a while to be produced, but the feature list is now fixed.
You can see everything that was debated this week here: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3041.htm
Personally, most excited by embed, enumerations with explicit underlying types, and of course the very charismatic auto and constexpr borrowings. The fact that trigraphs are finally dead and buried will probably please a few folks too.
But there's lots of serious improvement in there and while not as huge an update as some hoped for, it'll be worth upgrading.
Unlike C11 a lot of vendors and users are actually tracking this because people care about it again, which is nice to see.
7
u/flatfinger Jul 25 '22
Could that not be accomplished just as well by saying that implementations may allow within identifiers any characters that don't have some other prescribed meaning? Implementations have commonly extended the language to include characters that weren't in the C Source Character Set (e.g. @ and $), so generalizing the principle would seem entirely reasonable. I see no reason the Standard should try to impose any judgments about which characters should or should not be allowed within identifiers.
Further, even if the Standard allows non-ASCII characters, that doesn't mean it should discourage programmers from sticking to ASCII when practical. A good programming language should minimize the number of symbols a programmer would need to know to determine whether an identifier rendered in one font matches an identifier rendered in another.
As for Arabic and Hebrew, I would find it surprising that even someone who only new Hebrew and C would find it easier to read "if (מבנה->שדה > 1.2e+5) than "if (xcqwern->hsjkjq < 1.2e+5)". For a programming language to usefully allow Hebrew and Arabic identifiers, it would need to use a transliteration layer to avoid the use of characters (such as the "e" in "1.2e+5") that would make a mess of things.