The following message is a courtesy copy of an article that has been posted to comp.lang.ruby as well. Yukihiro Matsumoto <matz / netlab.co.jp> writes: > The following message is a courtesy copy of an article > that has been posted to comp.lang.ruby as well. > > Hi, > > Finally, I got access to comp.lang.ruby. > > Dave Thomas <Dave / Thomases.com> writes: > > |Does anyone else think that Integer#odd? would be useful? > > Both > > n % 2 == 1 > (n ^ 1) == 1 Now if you're going to exclude methods on the basis that they could be implemented in other ways, I've got a list you could delete ;-) > would work. Do we really need it? > If I have to add odd?, I'd add even? too. The reason people implement odd but not even is that odd is unambiguous, but people seem to disagree about whether zero is even. Dave