Rant after trying Rust a bit

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 23 12:49:29 PDT 2015


On 7/23/2015 7:15 AM, Andrei Alexandrescu wrote:
>> I am a bit puzzled by the notion of shipping template code that has
>> never been instantiated as being a positive thing. This has also turned
>> up in the C++ static_if discussions.
>
> This is easy to understand. Weeding out uncovered code during compilation is a
> central feature of C++ concepts. Admitting you actually never want to do that
> would be a major blow.

But if a unit test fails at instantiating it, it fails at compile time.



More information about the Digitalmars-d mailing list