Re:Common Misconceptions about Compilers
by gpderetta on Tuesday December 10, 2024 @05:12AM
(#42375446)
If constexpr and static if have different semantics, specifically if constexpr can't inject names outside it's scope which is what Bjarne was worried about.
[ Parent
| on HN ]
While true, if reflection actually lands, it will bring symbol injection with it.
Re:Common Misconceptions about Compilers
by gpderetta on Tuesday December 10, 2024 @08:29AM
(#42376617)
I think the injection will still properly respects scoping.
Might be, so far I only watched the few talks that touched upon reflection ideas and upcoming roadmap, some stuff might even only land on C++29, assuming reflection MVP does indeed land on C++26.