Hi,

In message "[ruby-talk:22964] Re: modified assignments with methods?"
    on 01/10/22, Paul Brannan <pbrannan / atdesk.com> writes:

|More appropriate, I think, are the "bang methods".  For example, where you
|might want to write:

I think they are different beasts:

|  str gsub= 'a', 'b'

means:

  str = str.gsub('a', 'b')

|  str.gsub!('a', 'b')

means:

  str.gsub!('a', 'b')	# of course!

which does modify the receiver.  I don't think I'm going to add
the abbreviated assignment to the language, since

|  str gsub= 'a', 'b'

is too ugly.

							matz.