On Sunday, 9 June 2013 at 12:25:45 UTC, Peter Alexander wrote:
On Sunday, 9 June 2013 at 12:19:47 UTC, Lars T. Kyllingstad
wrote:
A recent pull request discussion got me thinking: The ability
to "downgrade" a range to a less featureful one -- wrapping a
random access range in an input range, say -- can be very
useful sometimes, particularly for testing.
"Particularly for testing", or *only* for testing? Is there any
other use? (I can't think of any non-contrived use case beyond
testing).
I was kind of hoping someone else would come up with examples. :)
Jokes aside, maybe it's only good for testing. But testing is
important enough.
If it's just for testing, would it not be better to just supply
a variety of test ranges that implement all combinations of
traits?
I'm not sure I see the difference.