assert semantic change proposal

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 5 17:52:29 PDT 2014


On 8/3/2014 4:51 PM, Mike Farnsworth wrote:
> This all seems to have a very simple solution, to use something like: expect()

I see code coming that looks like:

    expect(x > 2);  // must be true
    assert(x > 2);  // check that it is true

All I can think of is, shoot me now :-)



More information about the Digitalmars-d mailing list