[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04243] Re: Method signature - a question for the group

From: Dave Thomas <Dave@...>
Date: 2000-07-28 01:23:43 UTC
List: ruby-talk #4243
Mathieu Bouchard <matju@hbesoftware.com> writes:

> > We also describe in the text that follows the circumstances under
> > which nil is returned.  The problem is that these "or nil"s appear
> > all over the place (and we're discovered places where they're
> > missing), and they mess up the layout of the method definitions
> > somewhat. So, we were wondering: do people feel they're useful to
> > include in the signature, or is noting them in the accompanying
> > text good enough?
> >       str.index( aString ) -> aFixnum or nil
> 
> Please include them, simply because nil is not a fixnum, and so one has to
> check the return value, and act accordingly. it's as simple as that.

We just went through and did just that. We've posted the latest
version (which we hope is the final version) to
http://dev.rubycentral.com/ref. I'm sure we have some html conversion
issues, but the content should be pretty close to complete. If anyone
finds any problems, now's the time to say!

Thanks


Dave & Andy

In This Thread