Stream: ideas

Topic: Stream builtin


view this post on Zulip Nick Hallstrom (Feb 16 2023 at 16:17):

Has there been any discussion on a Stream builtin? I know some languages have it as part of the standard library and some as a library.

view this post on Zulip Brian Carroll (Feb 16 2023 at 18:26):

I don't remember any discussion on that. It's something that would be nice in Roc in the future but I think it's too early now. I don't think we'd have an immediately obvious place to use it yet.
My guess is that at some point we'll have several platforms where it makes sense to use streams on top of Effects. Then people will want a common API for that and it'll become a library.
Personally I can't imagine it ever being in the standard library. But who knows!


Last updated: Jun 16 2026 at 16:19 UTC