What are the worst parts of D?
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 24 08:08:47 PDT 2014
On 9/24/14, 6:06 AM, Kagamin wrote:
> I'm not a C++ guru, but it looks like SFINAE exists for simplicity, so
> that templates can be matched without template constraints and
> reflection. This looks equivalent to D template constraints. If template
> doesn't work for some parameters, just filter them out.
That's right. The enable_if etc. stuff is still part of the type (and
therefore the mangling), but the selection itself can be trivially done
on the D side with template constraints. No worries, we know how to do
it. -- Andrei
More information about the Digitalmars-d
mailing list