On Wednesday, 20 November 2013 at 23:46:07 UTC, Shammah
Chancellor wrote:
It should be in phobos since it's widely used in most templated
modules. Even if it's simple, it's used all over the place
and should be standardized. As for the normals being legit,
that's true. However, It would be nice to see an
InputRange() interface in the library to be able to see "Ah
yes, this is what needs to be implemented to be an input range
at compile time."
http://dlang.org/phobos/std_range.html#isInputRange
This is the very point - for simple stuff like Phobos ranges
defining interface types is actually more verbose than simply
creating unique constraints and does not really bring much. It
would have been much more interesting if `std.typecons.wrap`
would have accepted structs though.