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
