C++ static-if; how is it so different?

lobo via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 6 19:38:55 PDT 2015


C++17 is looking more and more like D everyday, just with a noisy 
and messy syntax. I found this proposal of interest:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4461

Especially this comment in the last paragraph:

> ...since it's not identical or even very similar to the static 
> if in D, ...

I don't quite get this because to me it seems to be simply a 
subset of the D feature. Also the examples shown are basically 
how I use the D static-if now.

If anyone knows why the proposal claims to be so different from 
D's static-if (modulo the restrictions mentioned) I'd be 
interested to know why.


Thanks,
lobo


More information about the Digitalmars-d-learn mailing list