On Wednesday, 15 February 2017 at 14:01:28 UTC, Andrei
Alexandrescu wrote:
It still has a cargo cult flavor because it introduces a new
scope, which kinda misses the point of static if.
That's an understatement.
Having static if introduce a new scope makes static if useless.
Creating a new scope means that code duplication inside of a
function is now a must. At that point you might as well just make
what you were going to put in the other static if branch as a
different overload.
It also means design by introspection/range composition is now
impossible.