enforce()?

Jonathan M Davis jmdavisProg at gmail.com
Wed Jun 16 11:10:17 PDT 2010


Andrei Alexandrescu wrote:

> Walter Bright wrote:
>> Michel Fortin wrote:
>>> On 2010-06-16 05:15:24 -0400, Walter Bright
>>> <newshound1 at digitalmars.com> said:
>>>
>>>> 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.
>>>
>>> True.
>>>
>>> Yet, enforce is inside std.contracts. If that isn't conflating the two
>>> concepts I wonder what it is. :-)
>> 
>> I agree completely. enforce must move.
> 
> Where to?
> 
> Andrei

I would point out that pretty much nothing in std.contracts actually relates 
to contracts. Rather, it relates to error handling. So, it would probably be 
a good idea to simply rename the module - perhaps to std.error.

- Jonathan M Davis


More information about the Digitalmars-d mailing list