[r6rs-discuss] Hashes in the number syntax

From: Ben Goetter <goetter>
Date: Sun Nov 19 15:23:02 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.
Received on Sun Nov 19 2006 - 15:22:14 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC