Contracts + Assert
Lutger
lutger.blijdestijn at gmail.com
Wed Oct 31 08:21:01 PDT 2007
Mike Linford wrote:
> So in what cases would one prefer to use contracts over normal exception handling?
In theory, violation of contracts mean a program has a bug and
exceptions may signify an exceptional circumstance, but never a bug.
This should or could be useful for understanding the nature of the
problem and implementing checks during development that are too costly
in a released product.
More information about the Digitalmars-d-learn
mailing list