Rant after trying Rust a bit

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 25 15:59:57 PDT 2015


On Saturday, 25 July 2015 at 12:05:12 UTC, Andrei Alexandrescu 
wrote:
> Well at least all paths must be compiled. You wouldn't ship 
> templates that were never instantiated just as much as you 
> wouldn't ship any code without compiling it. We've had a few 
> cases in Phobos a while ago of templates that were never 
> instantiated, with simple compilation errors when people tried 
> to use them. -- Andrei

That is an instance of happy case testing. You test that what you 
expect to work work. You can't test that everything that is not 
supposed to work do not, or that you don't rely on a specific 
behavior of the thing you are testing.



More information about the Digitalmars-d mailing list