infinity comparison

Lex Spoon lex at cc.gatech.edu
Fri Sep 17 15:50:41 UTC 2004


Okay, here's another useless discussion, following up the recent one
about comparison of NaN's.  Try this in Squeak:

1000 factorial < Float infinity    "-->  false"

This hydra just won't stay dead!

And if this example seems silly, just think of all the algorithms that
insert infinity's as initial values on paper, but for which C and Java
programmers have to use some sort of sentinel value like -1.  There are
some serious cool points are at stake here, if we can make it possible
in our language to insert a plain old infinity.

-Lex



More information about the Squeak-dev mailing list