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

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

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

From: Dave Thomas <Dave@...>
Date: 2000-05-18 03:16:06 UTC
List: ruby-talk #2869
Andrew Hunt <andy@Toolshed.Com> writes:

>     >
>     >  n % 2 == 1
>     >  (n ^ 1) == 1
>     >
>     >would work.  Do we really need it?
>     >If I have to add odd?, I'd add even? too.
> 
> Well, even? and odd? make the intent much more explicit.
> 
> But how would you expect zero to work?

And in fact given zero? and nonzero? are methods of number, there'd
seem to be a precedent ;-)


Dave

In This Thread