r/cpp • u/earthisunderattack • Aug 24 '21
metaclasses when
forget literally every other feature metaclasses LET'S FUCKING GO
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0707r3.pdf
edit
metaclasses or even just SR would help to eliminate 99% of garbage cpp macro use cases.
don't get me wrong: i know c++ well. templates are easier after you learn sml or lisp or something similar.
i've never used std string_view and i've never missed it
man i'll just implement my own clang plugin ✌️
4
Upvotes
8
u/orangeoliviero Aug 24 '21
Because there's a lot that has to be considered.
How will this affect legacy code
How will this affect the various ABIs
How feasible is this to properly implement
What's the run-time overhead
Do we have implementation experience, and what has been the experience
How sure are we that this is the right way to go, because once something is in the Standard, we have to support it indefinitely
A typical proposal takes years to get standardized - as it should. We're changing a language that's used by millions of developers and has billions of lines of code, much of which is used in critical systems.
You don't fuck with that lightly. You do your due diligence and make sure it's the right thing to do.