[ENH] floatGlobals-ls ( Not really happy: design comments )

bergel at iam.unibe.ch bergel at iam.unibe.ch
Sun Sep 19 20:58:06 UTC 2004


I would like to raise two points from your design.

I am really wondering the reason of adding a new global variable named
Infinity. Adding such a global bindings with such a generic name looks
like dangerous for me. If it is needed to have an infinity even with
integer, why not to add it in the class Number? It seems that it makes
things easier regarding the evaluation of string. I do not see this need
strong enough to add new global variables. We have SmallInteger>>maxVal,
why not to have Float>>infinity (without having ^ Infinity as
implementation)


Changing the grammar in order to handle infinity easier? I am really
against this proposition.


Note that I did not see the code (I can read it using the "code" button
in the file list browser).



More information about the Squeak-dev mailing list