On Tuesday, 14 February 2017 at 20:46:17 UTC, Walter Bright wrote:
Range remove
[...]
But there's another issue here. remove() has other overloads:
[...]

Two constraints are common to all three, those are the only ones that actually need to be in the constraint. The others can go in the body under `static if`, as the user need not be concerned with them.

This is a general issue in Phobos that too many constraints are user-facing when they don't need to be.

This!

Getting rid of overloads and at the same time simplify the constraints by moving them in the function with static if!
That would really improve the function signatures!

Reply via email to