What's up with the assert enhancements proposed years ago?

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 24 01:03:15 PDT 2016


On Friday, 23 September 2016 at 20:57:49 UTC, Nick Sabalausky 
wrote:
> were rejected because it was deemed both easy enough and 
> preferable to get these features by modifying DMD to add 
> behind-the-scenes AST magic to "assert".
>
> So...umm...yea...whatever happened to that beefed-up "assert" 
> feature?

assertPred!"=="(a, b);
assertPred!"!"(a);
assertPred!(std.range.equal)(a, b);

Seems to do most of what DIP83 does w/ expensive feature design, 
and compiler implementation work.
Also http://code.dlang.org/packages/unit-threaded comes with a 
couple of test comparators, though it follows ruby rspec's bad 
idea of giving every comparator a name (which has to be learnt 
and documented).


More information about the Digitalmars-d mailing list