News for hackers. Stuff that matters.
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.
Re:Common Misconceptions about Compilers by pjmlp on Tuesday December 10, 2024 @05:42AM (#42375608)
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.
Re:Common Misconceptions about Compilers by pjmlp on Tuesday December 10, 2024 @09:14AM (#42376993)
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.