[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02865] Re: Just one more wafer thin mint....

From: Yukihiro Matsumoto <matz@...>
Date: 2000-05-18 02:11:01 UTC
List: ruby-talk #2865
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

would work.  Do we really need it?
If I have to add odd?, I'd add even? too.

							matz.

In This Thread