[r6rs-discuss] Hashes in the number syntax

From: Jens Axel Søgaard <jensaxel>
Date: Sun Nov 19 15:24:40 2006

Jens Axel S?gaard skrev:

>>> Is this syntax used by anyone?
>>
>> I don't know. IIRC, Sussman suggested this syntax, so
>> it might be used more at MIT than elsewhere.

I tried searching for this pattern in the PLT Source base
including all PLaneT packages:

     [0123456789]+#+

The only relevant hits were:

<http://ja.soegaard.net/planet/html/r6rs/r6rs/1/0/arithmetic/test-string2number.scm>
<http://ja.soegaard.net/planet/html/r6rs/r6rs/1/0/arithmetic/string2number.scm>

The others were from non-Scheme files.

In "test-string2number.scm" I see:

    (check (string->number "15##") ==> 1500.0)

shouldn't it check the interval [1500.0;1600.0[ ?
(I know the reference implementation returns 1500, but
it would be nice to be able to reuse the test suite.]

-- 
Jens Axel S?gaard
Received on Sun Nov 19 2006 - 15:22:24 UTC

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