[racket-dev] Why is there no `stream' macro which functions analogously to the `list' macro?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Dec 8 09:40:36 EST 2011

The addition of `stream' makes sense to me. What were the arguments
against?

(For further pull requests, please include test cases --- which in this
case would have caught the use of `stream-empty' instead of
`empty-stream'.)

At Mon, 5 Dec 2011 16:23:09 -0500, Daniel King wrote:
> I initiated a pull request [1] to add a `stream' macro which produces
> streams in much the same way the `list' macro does; however, after
> speaking with Vincent and Stevie, I'm not sure this is the right
> approach.
> 
> I understand that `list' can be used to construct things which can be
> used as streams, but I think it's confusing for the user to require
> racket/stream and not receive a `stream' macro which functions like
> `list'.
> 
> [1] https://github.com/plt/racket/pull/62
> 
> -- 
> Dan King
> College of Computer and Information Science
> Northeastern University



Posted on the dev mailing list.