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

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Mon Aug 6 13:57:25 EDT 2007

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



Posted on the users mailing list.