Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[feature request] Enum 100% compatible with Stream #197

Open
bobzhang opened this Issue Dec 24, 2011 · 3 comments

Comments

Projects
None yet
3 participants

Some functions like Stream.sempty, Enum.empty are not compatible.
100% compatible means we can use Stream syntax extensions for free like

let module Stream = Enum in
code_block

Owner

thelema commented Dec 24, 2011

I guess this might be a fair request, could you provide tests that Enum needs to pass? I don't know if we have a stream + enum expert to make this happen.

Member

agarwal commented Jan 2, 2012

I'm not sure Enum is supposed to be a strict extension of Stream. If it was, it would have been called ExtStream in ExtLib. However, I'm not sure of why this is the case, and don't know the internals of the two well enough to comment on whether they are essentially compatible.

bobzhang commented Jan 2, 2012

Yes, they don't share the same internal representation, but I guess they
should share the same interface. The Stream is a subset of Enum?

On Mon, Jan 2, 2012 at 11:29 AM, Ashish Agarwal <
reply@reply.github.com

wrote:

I'm not sure Enum is supposed to be a strict extension of Stream. If it
was, it would have been called ExtStream in ExtLib. However, I'm not sure
of why this is the case, and don't know the internals of the two well
enough to comment on whether they are essentially compatible.


Reply to this email directly or view it on GitHub:

#197 (comment)

Best, bob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment