Another idiom I wish were gone from phobos/druntime

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 4 17:33:54 PST 2015


On Thursday, 5 February 2015 at 01:09:15 UTC, Andrei Alexandrescu 
wrote:
> Non-debug mode removes asserts statically. -- Andrei

Using pre-/post-conditions allows the _caller_ to specify whether 
the checks are run without recompiling the function body, at 
least in theory.

David


More information about the Digitalmars-d mailing list