Here, Here! If someone has some worthwhile reasons they can share for returning the values, please do so. Otherwise, I would prefer not giving someone data they might use that might not be there later. I wrote method that returned a boolean-like value by returning !(!(something)) just to ensure exactly true or false. The alternative is just to unnerving! :-) Drew > -----Original Message----- > From: Martin DeMello [mailto:martindemello / yahoo.com] > Sent: Saturday, August 09, 2003 8:52 AM > To: ruby-talk / ruby-lang.org > Subject: Re: Ruby and OOP-design (question of an old > "procedural person" ;) > > > Well and good, but they don't document the fact that the > return value can be used as anything other than a boolean. > Duck typing or no, I find it conceptually messy to have a > method called nonzero? return self rather than true - compare > nil? and zero?. Using the value of self feels like relying on > an undocumented side effect. (I feel the same way about ! > methods returning nil rather than self when they haven't made > a change). > > martin >