Another idiom I wish were gone from phobos/druntime
via Digitalmars-d
digitalmars-d at puremagic.com
Thu Feb 5 00:31:08 PST 2015
On Thursday, 5 February 2015 at 08:25:56 UTC, Jonathan M Davis
wrote:
> case where in blocks would be of value, though I really don't
> see much
> difference between checking the assertions in an in block and
> checking any
> other assertions at compile time that can be checked at compile
> time -
The difference is that implementation asserts() are part of
debugging within a module, while contracts may be active in
release mode so that you know which module failed and which
subcontractor to call to fix it.
More information about the Digitalmars-d
mailing list