[plt-scheme] Re: Project Euler was Hash Table implementation

From: Jos Koot (jos.koot at telefonica.net)
Date: Mon Aug 6 14:29:25 EDT 2007

Of course I immediately checked my own even stream implementation and it 
correctly says:
(null-stream? (stream-cdr (stream-cons (1) null-stream))) --> #t
(yes, I use slightly different identifiers)
Jos Koot

----- Original Message ----- 
From: "Chongkai Zhu" <czhu at cs.utah.edu>
To: "David Van Horn" <dvanhorn at cs.brandeis.edu>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Monday, August 06, 2007 7:57 PM
Subject: Re: [plt-scheme] Re: Project Euler was Hash Table implementation


>I have tried SRFI-40. But after a while, I notice it's far too tricky. So I go 
>back to my own odd stream implementation. Maybe we need a SRFI (or, a package) 
>for odd stream?
>
> Chongkai
>
> David Van Horn wrote:
>>
>> It goes beyond being tricky.  The document and the reference implementation 
>> are inconsistent in a fundamental way.  For example, the document states:
>>
>>    "no element of the stream is evaluated until it is accessed."
>>
>> And yet, the following causes an error because the car element is evaluated 
>> even though it is never accessed:
>>
>>    (stream-cdr (stream-cons (1) stream-null))
>>
>> David
>>
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 



Posted on the users mailing list.