digitalmars.D.bugs - [Issue 16628] New: Special case std.algorithm.equal for known empty
- via Digitalmars-d-bugs (21/21) Oct 20 2016 https://issues.dlang.org/show_bug.cgi?id=16628
https://issues.dlang.org/show_bug.cgi?id=16628 Issue ID: 16628 Summary: Special case std.algorithm.equal for known empty or infinite ranges Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: nick geany.org * If one of the ranges has `Range.empty == true`, we can define `equal` even when each `front` is not comparable. * If one range is known to be infinite and the other defines `length`, return false. * If both are known to be infinite, cause a compile-time error. PR pending. --
Oct 20 2016