D-Programming-Language/phobos — pull request #945 by denis-sh (2012-11-14 16:00:34+00:00)
Title: [RFC] Change `std.range.hasSlicing` to also require `hasLength` for slice

This sounds reasonable but may break some code.

Also note, that current situation as error-prone as it's common to expect a slice to have a length. E.g. `takeExactly` do it as it is documented as "always defines the length property" but returns range slice without any checks.