From: Edmond Kachale Date: 2011-01-20T20:11:18+09:00 Subject: Re: The most recommended way of naming methods in Ruby --0016e65a07a4d3b41b049a451a8b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/1/19 Gary Wright > > On Jan 19, 2011, at 3:13 AM, Edmond Kachale wrote: > > > Le 18 janvier 2011 22:01:11 UTC+2, Gary Wright a =E9c= rit > : > > > >> On Jan 18, 2011, at 7:30 AM, Phillip Gawlowski wrote: > >>> obj.remove_name! > >>> obj.date! "Julian" # I wish I could do obj.date "Julian"!, instead. A= h, > >> well. > >> > >> I think the conventional wisdom is that this should only be done only = if > >> there is a matching non-mutating method that has the name without the > >> exclamation mark. > > > > > > Someone may give more info on why it should be like this: > > > > I think you left something off. Anyway... > > Here is a great explanation of the '!' naming convention: > > > > I was going to try to explain this but why bother when David Black has > already done a great job? > I like you on this. --- Edmond Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) | Malawi Cell: +265 999 465 137 | +265 881 234 717* ** An old dog does not hunt because of speed, but his endurance of the heart.* * * --0016e65a07a4d3b41b049a451a8b--