Re: Documentaion update request for "find"
- Posted by jimcbrown (admin) Sep 15, 2010
- 1095 views
alanjohnoxley said...
However, if find returns -1 instead of 0, then the user would know what gives, especially if the -1 is documented?
I conceed it would break some existing code though, but only in places where the find scope is wrong anyway.
This is wrong.
find() works correctly, even on (especially on) nested sequences. Your change would break code that is using find() correctly with nested sequences.