r/C_Programming • u/Jinren • Feb 23 '24
Latest working draft N3220
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf
Update y'all's bookmarks if you're still referring to N3096!
C23 is done, and there are no more public drafts: it will only be available for purchase. However, although this is teeeeechnically therefore a draft of whatever the next Standard C2Y ends up being, this "draft" contains no changes from C23 except to remove the 2023 branding and add a bullet at the beginning about all the C2Y content that ... doesn't exist yet.
Since over 500 edits (some small, many large, some quite sweeping) were applied to C23 after the final draft N3096 was released, this is in practice as close as you will get to a free edition of C23.
So this one is the number for the community to remember, and the de-facto successor to old beloved N1570.
Happy coding! 💜
View all comments
Show parent comment
1
u/hgs3 Mar 10 '24
Traditionally you'd use the C pre-processor or an external pre-processor, like m4, to generate multiple implementations. Is there something wrong with those approaches? If the C pre-processor is lacking, then wouldn't it be better to improve it? Maybe add clarifying language around new lines so debuggers can step line-by-line through them, maybe add statements expressions (see the GNU extension)?
The problem with the proposals you linked is they are less flexible than the C pre-processor is today. For example the proposals add parametric polymorphism to functions, but not record types. Records need polymorphism too. Instead of adding a single purpose solution please consider improving the more general and composable tool that already exists in the language today.