[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:03058] FailureClass?

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-05-31 16:48:27 UTC
List: ruby-talk #3058
Question arising from the FAQ:

7.4 says:
We recommend that predicate methods (those whose name ends with a question
mark) return true or false. Other methods that need to indicate failure
should return nil.

While we are unloading the multiple meanings of nil (or like 0 in C as null
and false and... :) shouldn't we do it to the full extent at once by
introducing FailureClass and mentioned routines should return a failure
(instance FailureClass).

Then nil would have only (?) the meaning undefined or unspecified.

	- Aleksi

In This Thread

Prev Next