enforce()?
Walter Bright
newshound1 at digitalmars.com
Wed Jun 16 02:15:24 PDT 2010
Ali Çehreli wrote:
> 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?
>
> I can see two benefits:
The difference is not based on those 3 points, but on what Andrei wrote here.
Contracts and error checking are completely distinct activities and should not
be conflated.
More information about the Digitalmars-d
mailing list