--- Phil Steitz <[EMAIL PROTECTED]> wrote:
> Al Chou wrote:
> > --- Phil Steitz <[EMAIL PROTECTED]> wrote:
> >>Al Chou wrote:
> >>>--- Brent Worden <[EMAIL PROTECTED]> wrote:
> >>>>>-----Original Message-----
> >>>>>From: Phil Steitz [mailto:[EMAIL PROTECTED]
> >>>>>Sent: Friday, June 06, 2003 12:21 PM
[deletia]
> >>>>Simple methods like isPositive, isNegative, etc. can be used to make
> >>boolean
> >>>>expressions more human readable.
> >>>
> >>>
> >>>I'm willing to build those two on top of sign (I'm so generous with my
> >>coding
> >>>time, eh? <g>). Are those two sufficient? sign treats 0 as positive,
> >>which
> >>>may not be desirable.
> >>>
> >>
> >>+1 (especially the part about your time :-)
> >
> >
> > OK, I'll TDD those up, hopefully resolving the question of what to do about
> the
> > sign of 0 in the process.
> >
> Forgot to weigh in on this. I would say that 0 is neither positive nor
> negative. If that is not a happy state, I would prefer to call
> isPositive, "isNonNegative". I know that is ugly, I have a hard time
> calling 0 a positive number. So, my first should would be isPositive
> and isNegative both fail for zero, second would be to rename as above.
I tend to agree with you, except for the usage that I wrote sign() for in the
first place. Granted, that may be an unusual usage, so I'll keep your remarks
in mind while I TDD. Also, I just realized that I won't be submitting the
Ridders' method code for the initial release anyway (at least as far as I
know), so maybe sign() needs to change, given that it has no users that require
the current behavior.
Al
=====
Albert Davidson Chou
Get answers to Mac questions at http://www.Mac-Mgrs.org/ .
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]