[r6rs-discuss] Hashes in the number syntax

Ben Goetter goetter at mazama.net
Sun Nov 19 15:22:14 EST 2006


From: Jens Axel Søgaard <jensaxel at soegaard.net>
> If 1## were specified to be read as #i150, then I could
> see a use for the syntax. As is things are now, it can be
> read as any number between 100.0 and 200.0 .

Treating the first # in the sequence as a 5 and every subsequent # as a 
0 places the read number in the middle of the range of its possible values.

1## -> #i150 [100, 199]
1##.## -> #i150 [100.00, 199.99]
123.4### -> 123.45 [123.4000, 123.4999]

> 
> Most implementations treat is as 100.0, which seems
> to be against the spirit of the notation.

Tsk.




More information about the r6rs-discuss mailing list