my point was that the return value that signifies "out of range" is "true", so your contention that the "false" return value is somehow wrong begs the question -- i.e. that "out of range" should be a non-true value, which it isn't. nil doesn't mean it will fail, 0 does. would you prefer that "not applicable" be -1? the string "not-applicable"? or what? nil seems like a perfectly reasonable choice to me.
|