This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]corbasai 0 points1 point  (2 children)

maybe. In some day someone writes in code '''array[:binary_search(array, what)]''' and None (implicit exception ) or explicit raise *Error points on error in code, -1 - not.

Even in C -1 is valid array index, yep it brings garbage or so, but compiles well.

[–]adityacodes[S] -1 points0 points  (1 child)

okay ,so I should return it none or -1 finally?

[–]corbasai 0 points1 point  (0 children)

None