[squeak-dev] Zero is positive?
bruce.oneel at pckswarms.ch
Sun Jul 1 08:09:14 UTC 2018
One imagines there has been bloodshed in standards meetings over things like this.
For example, IEEE 754 has both positive and negative zeros.
For those of you who don't feel that life is pedantic enough there are many fascinating articles. You can start with:
and if you have way way too much time on your hands on a Sunday a C++ wg21 proposal edit from Apple. Probably from someone who thought "Life is not complex enough, I'll volunteer for the CLANG team. Oh, and then I'll join the standards committee as well."
> 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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev