View attachment 8478619
C2Y Proposal regarding Namespaces
I don't know how to feel about this. On one hand, namespacing in C is a pretty constant annoyance, a lot of function names carry the burden of namespacing by being verbose.
At points, I've used GCC's nonstandard support of the $ character in identifiers to help combat this, but it always felt like a smell even on good days.
I guess at least this syntax allows for existing prefix driven naming schemes to function, but it just feels weird.
I'd almost prefer they do a 'demo' run just focused on enums specifically first, and get feedback, because at least personally, the biggest bloat in code is large enum definitions as well as non-function macro definitions.
TL;DR, this is kind of a pain in C, especially with larger dependency projects, but this approach feels off to me.
Edit: It occurs to me that this is basically sideloading syntax manipulation that macros have largely avoided deliberately, e.g. splitting or removing macro tokens.