On Friday, 11 May 2012 at 18:18:21 UTC, Andrei Alexandrescu wrote:
At the same time it clarifies, documents, and statistically verifies that you pass a sorted range. Also, D's binary search works with non-array ranges, but C#'s works only with arrays (which it assumes sorted only by convention).

I think we copiously made the right call there.

Andrei


Right, right, I understand all of that...

But just because the *reasons* are correct that doesn't mean it's more intuitive.

("Intuitive", by definition, means that you have a good chance of getting it right without needing to look it up. Binary searching in D failed this miserably for me.)

Reply via email to