On Saturday, 16 April 2016 at 03:46:25 UTC, Jonathan M Davis
wrote:
On Friday, April 15, 2016 22:42:55 Andrei Alexandrescu via
Pros? Cons? Preferences?
The first one is way cleaner IMHO.
- Jonathan M Davis
Strong preference for iterative, one key improvement of D's CTFE
vs legacy C++ template meta programming is that you can avoid
recursion in the normal case(only using it when it's a clear win,
which I fail to see in this example).
Furthermore, I also fail to see what Unqual solves,
'isInputRange' should correctly handle all qualifiers.
allSatisfy!(isInputRange, staticMap!(Unqual, Ranges))
=>
allSatisfy!(isInputRange, Ranges)