From: David Alan Black Date: 2002-01-15T06:11:47+09:00 Subject: Re: a wishlist for ruby 2.0 Hi -- On Mon, 14 Jan 2002, Daniel Berger wrote: > * Eliminate separate methods for "modify receiver in place" with some other > mechanism. Either modify the receiver based on calling context (void == > modify, rvalue == don't modify), or provide a special generic method that > modifies the receiver. I don't mind the separate methods, but if I did... :-) I wouldn't want the context to be the determinant. For one thing, you might want to return a mapped array: def add_three(a) a.map {|e| e + 3} end where you wouldn't want the receiver automatically modified. Can you explain what you mean by a special generic method? David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav