enforce()?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Jun 16 07:45:25 PDT 2010


Alex Makhotin wrote:
> Steven Schveighoffer wrote:
>>  
>> Think of enforce as "throw if"
>>
> 
> So why not concatenating the two and rename it to exactly 'throwif'?
> Self descriptive is better than cryptic 'enforce'.

Well throwif describes mechanism and enforce describes intent. After all 
assert is not abortif :o).

Andrei


More information about the Digitalmars-d mailing list