Looking at different ocaml projects, I don't see the built-in Streams in the language ever used. Even in the recent Real World Ocaml book, Streams are not mentioned at all, which is odd.
What's the reason for that? Is it because Lwt or Core superseed them?
I think I pretty much answer this question in this bug report.
Streams were quite good with camlp4 syntax support, without it they are hardly usable at all. So, this was in times long past (although it is still usable, theoretically). As per Drup's reference they would be even removed in a near future (this year) from the core language, and, presumably, will be moved to a standalone library.
This is all not to say, that there is something wrong with streams as a data structure. This is still a very valuable technique used in many OCaml projects, they just use different libraries that implement this. There is Core Sequence
, Batteries Enum
, Simon Cruanes's gen
and sequence
packages, Joseph Abrahamson's fstream
package to name a few.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With