[#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:04102] Re: Possible new bit of syntax sugar?

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-18 01:46:35 UTC
List: ruby-talk #4102
Hi,

In message "[ruby-talk:04093] Possible new bit of syntax sugar?"
    on 00/07/17, hal9000@hypermetrics.com <hal9000@hypermetrics.com> writes:

|Of course, it would really look nicer without the dot:
|
|     if x in s

Possible.  Remind me when 1.7 development cycle starts.

|I've noticed that there is a member? method for ranges and an
|include? method for arrays. I realize that conceptually these
|are very different things, but still... I wonder if it would
|be helpful to alias include? to member? for ranges (especially
|in light of the above idea)?

This is possible too.

							matz.

In This Thread