[squeak-dev] Re: 16rff is looking for a fix :)

Andreas Raab andreas.raab at gmx.de
Fri Feb 12 00:31:39 UTC 2010

Bert Freudenberg wrote:
> "fix"?
> We had this discussion, err, about 10 years ago. Pops up from time to time but we can refer to the definitive answer:
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2000-March/013368.html

Heh. I remember that discussion. I disagreed with Dan then and I 
disagree now. My take on this is still the same: The usage of exponents 
with a radix other than ten may be educational but is otherwise 
*completely* pointless. So I say: Allow radix syntax (r) only WITHOUT 
exponent modifier (e) in literal numbers in which case none of this is 
an issue, i.e.,

16r1e5 => 485
1e5 => 10000
10r34e5 => ERROR! needs to be written as 10r34 * 1e5

So the exponent is always decimal in literal numbers. Simple, consisten, 
*and* convenient.

   - Andreas

More information about the Squeak-dev mailing list