enforce()?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Jun 15 19:23:15 PDT 2010
bearophile wrote:
> I have counted about 200 usages of std.contracts.enforce() inside
> Phobos. Can you tell me what's the purpose of enforce() in a language
> that has built-in Contract Programming?
You need to read TDPL for that :o).
> And what are the purposes of std.contracts.AssumeSorted()? Is it
> useful for something?
AssumeSorted was an experiment. I think it has drawbacks that I don't
know how to address, so I'll retire it.
Andrei
More information about the Digitalmars-d
mailing list