-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Stream.run to Stream.compile #1017
Comments
I'm generally in favor of this change. My only concern is build breakage caused by changing something so fundamental -- it will impact every use of the library. Hence, if we decide to make this change, we'll need to deprecate the I'm not sure
These don't make as much sense to me. We could use the syntax namespacing approach used in other parts of FS2 (like
|
I like the second approach. Not 100% bough on compile, how about |
|
👍 to Also, although I do agree with the change, I'm not 100% sure it's worth the amount of breakage, edging towards "it is" at the moment. |
Yes, I agree that it is so fundamental because it is everywhere, but on the other hand, it is not so different as changing
But I like the syntax namespacing suggestion of @mpilquist better. At last, about the major breakage that would follow if changing, I think it is good to have in mind that if a change would relieve such a cognitive burden that would ease the understanding of a so fundamental part of the library, it is worth doing it. Furthermore, since we are still on a 0.x series, that would be a perfect time to make this kind of change, before it is more "set in stone" as a 1.0 release. |
Alright, let's go with |
…t,last,fold,foldMonoid,foldSemigroup}. Fixes typelevel#1017
Hi,
I don't know if there is a strong theoretical reason behind this choice, but every time someone explains
Stream.run
it is said that it "compiles" theStream
, nothing is really "ran" and it doesn't actually perform any of the effects.Wouldn't it be better if it were already
Stream.compile
? It's, anyway, a nice analogy with a program: it is compiled and then run. Like:stream.compile.unsafeRunSync()
Instead of:
The text was updated successfully, but these errors were encountered: