[Issue 24233] T[].canFind(Nullable!T()) returns true when it used to return false

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 7 22:51:14 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24233

Paul Backus <snarwin+bugzilla at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |snarwin+bugzilla at gmail.com

--- Comment #2 from Paul Backus <snarwin+bugzilla at gmail.com> ---
This is arguably a design flaw in canFind (and find). Having different
overloads of the same function take inputs with different "shapes" (range vs.
element) seems like an open invitation for this kind of confusion. Perhaps
something to think about for Phobos v3.

--


More information about the Digitalmars-d-bugs mailing list