What are the worst parts of D?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 23 16:53:59 PDT 2014


On 9/23/14, 4:25 PM, deadalnix wrote:
> On Tuesday, 23 September 2014 at 20:22:32 UTC, H. S. Teoh via
> Digitalmars-d wrote:
>> SFINAE is another dark corner of disaster waiting to happen, once we
>> decide to implement C++ template compatibility. As well as Koenig
>> lookup, which will become indispensible if D code is to actually use
>> non-trivial C++ libraries.
>>
>
> We don't need these to be compatible with C++. We don't want to
> be able to cut/paste C++ into a . file and expect it to compile,
> but that you can map a reasonable amount of C++ constructs and
> expect them to interact with the C++ code and back.

Yah, that's exactly it. Syntax and semantics stay D; the functions 
called may be C++. -- Andrei


More information about the Digitalmars-d mailing list