Hi,
In message "[ruby-talk:6972] Re: return value of mutating methods"
on 00/12/10, "Christoph Rippel" <crippel / primenet.com> writes:
|The current behavior of collect! is already incompatible with
|the bang rule - it always returns the object but should always
|return nil (which is obviously a pretty useless behavior).
Should it? It ALWAYS modify the receiver, so I think it should (and
does) always return the receiver itself. Am I confusing?
As for sort! (and reverse!), yes, it is incompatible with the bang
rule, it shall be changed. The problem is that I haven't set up my
mind to change either way.
matz.