std.unittests for (final?) review
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Jan 6 14:44:51 PST 2011
On 1/6/11 2:59 PM, Tomek Sowiński wrote:
> Andrei Alexandrescu napisał:
>
>> * Remove assertCmp and fold it into assertPredicate. With trivial
>> metaprogramming you can distinguish an operator from an actual expression.
>>
>> assertPredicate!"<"(1 + 1, 2.1);
>
> If it's trivial, put it into binaryFun, so that everyone else can reap rewards:
>
> sort!">"(range);
> auto sum = reduce!"+"(range);
Yah, I've been thinking of it.
> As for operator-only unaryFuns, don't; they bring more confusion than benefit.
Agreed.
Andrei
More information about the Digitalmars-d
mailing list