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

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-03 17:03:19 UTC
List: ruby-talk #3768
Hi,

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

|Why Array.uniq! returns nil if it doesn't do anything (every element 
|is unique). Same for Array.compact! Next example requires two times 
|the memory what uniq! -version would. Could be a problem with large texts.

Ruby 1.5.x do the magic for you.  Non bang methods don't copy memory
regions unless copying is really needed, using the state-of-the-art
copy-on-write technology. ;-)

							matz.

In This Thread

Prev Next