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/Jinren Mar 10 '24
Multiple implementations is a problem. That's just templates with more convoluted steps at that point. To do this properly, the solution should actually support polymorphic types in the type system, not "inline" them down to separate instantiations. That's not compatible with... anything, really, as it currently stands; is not (even remotely) composable, and wastes energy needing to be undone in later passes.
I mean propose it if you want but "reifying" approaches have like zero support after the complete mess that was templates. Repeating that mistake in C is not on anyone's agenda.
Support for record types will be appearing in the next version of at least a couple of these proposals. They aren't that much more complicated, they just weren't in the first pass. They are easier to do correctly with some prerequisites like either n3197 or void-arrays (because you need to talk about the storage instance and not just the interface), though this isn't essential.