[#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:03961] Re: Array.uniq! returning nil

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-13 04:57:00 UTC
List: ruby-talk #3961
Hi,

In message "[ruby-talk:03931] Re: Array.uniq! returning nil"
    on 00/07/11, Aleksi Niemel<aleksi.niemela@cinnober.com> writes:

|Yup, I agree. Side-effects are bad! Performance is good! But not for any
|cost. This was not, however, what I was talking about. I was pointing that
|there should be consistent mapping between method and method!.

Like bang sign for Scheme language, right?

In Scheme, every destructive operation has bang sign at the end of the
name.  Ruby did not follow this principle, rather I choose to put bang
sign at the end of the name of methods which are more dangerous than
alternative.  You know I mean?  Every bang method has non-bang
(i.e. safer) counterpart.  You can totally forget about bang methods
at first.

							matz.

In This Thread