Let's bikeshed std.experimental.testing assertions/checks/whatchamacallits

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 30 07:52:39 PDT 2015


On Tuesday, 30 June 2015 at 12:00:36 UTC, Meta wrote:
> On Tuesday, 30 June 2015 at 08:06:37 UTC, Atila Neves wrote:
>> 2a) Compile-time strings for operators: `should!"=="`, 
>> `should!"in"`
>> 2b) Dicebot's `test!"=="`. `assert` is so much better, I wish 
>> we could use that.
>
> I think these are both bad, for the reason that ! also means 
> logical not. I read `should!"=="` as "should not equal" before 
> catching myself.

I'd forgotten about it, but I knew there was a reason I didn't 
like `should!"=="`, and it was the same reason as you.

Atila


More information about the Digitalmars-d mailing list