From: Adam Prescott Date: 2011-03-09T03:12:56+09:00 Subject: Re: Duplicate methods removal in Ruby's TODO ? --e0cb4e6ff21d966a07049dfc8fe8 Content-Type: text/plain; charset=UTF-8 On Tue, Mar 8, 2011 at 1:12 PM, Joey Zhou wrote: > These methods all alert the receiver in place. They have no trailing > exclamation mark because there are no methods of the same name which > return a modified copy of the object only. I don't think a bang is an > alarm to tell you "there is a same name method", a bang should be an > alam "it will change your object, be carefull!" So string.clear should > be string.clear!, even if there's no "clear" method which doesn't alert > the receiver. I think it's logical. > Using bang names to denote receiver-modifying methods is not the convention, and I don't think it should become it. http://dablog.rubypal.com/2007/8/15/bang-methods-or-danger-will-rubyist --e0cb4e6ff21d966a07049dfc8fe8--