>>>>> "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes:

GL> That's exactly why it would be nice if index _did_ throw an exception on
GL> failure, then you could write code this way, and catch the failures
GL> without needing to check return values for the error code case before
GL> proceeding with the real case.

But you would still have to catch the exception. Not a nice thing to 
terminate the program just because an expected mismatch occured.

Not finding something is not exceptional.

Neither is EOF on a file, or working with an empty list. Adding all these
exceptions for non-exceptional and quite common scenerios is bothersome.

<chaim>
-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to