[squeak-dev] Zero is positive?

Chris Muller asqueaker at gmail.com
Sat Jun 30 21:11:49 UTC 2018


I was just found a bug in my code because I had written it assuming
that the number 0 (zero) is neither positive nor negative.  It failed
because:

   0 positive    "true"

Really?

Ah, okay, there's #strictlyPositive, I'll use that.

But it seems like #nonNegative might be a better name then!


More information about the Squeak-dev mailing list