dsimcha/phobos — comment on commit 4c1177cced750d6e16622ffcc5c4b114f9f06808
File: std/algorithm.d line 7695
By jmdavis:

Doesn't `not` have issues which make it so that if you try and use any functions in it which aren't imported by std.functional, it doesn't work? Or is that only with strings? I'd actually be very concerned about using `not` without playing around with it a bit to make sure that `all` takes a reasonable set of predicates rather than just stuff related to what's imported by std.functional.

Now, aside from all that, I completely agree that `canFind` should be used rather than empty, since it avoids unnecessary range creation, and might permit other small efficiency boosts depending on the implemention of `canFind`.