[squeak-dev] Zero is positive?
leves at caesar.elte.hu
Sat Jun 30 23:05:54 UTC 2018
Those methods conform to the ANSI standard. ;)
On Sat, 30 Jun 2018, Chris Muller wrote:
> 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
> 0 positive "true"
> 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