4 ms·
This is nothing like a real byte stream, and is very misleading. The name implies that it's for data i/o, when in reality it's for mathematics.
by Sephr 15y ago
This is nothing like a real byte stream, and is very misleading. The name implies that it's for data i/o, when in reality it's for mathematics.
- zzzeek 15y agoAgree, i thought the name is awful as I expected to see something related to I/O and buffering of content. It looks like a handy list object and seeing "stream" everywhere was just blinding. However, right at the bottom the etymology of the name is made clear: > The name 'stream' is used in Scheme, a LISP dialect that supports these features. So the name is from the FP community. Given the cultural issues, a name change seems unlikely...
- anderse 15y agoHere's a helpful two-part Berkeley lecture on the topic: http://academicearth.org/lectures/streams-i http://academicearth.org/lectures/streams-i
- telemachos 15y agoI didn't know that series of lectures, so thanks a hundred times. (Just spend the evening watching the first two hours and bought Harvey's book as well.)
- xyzzyz 15y agoIt's also used in Ocaml and SML, as far as I remember.
- raganwald 15y agoDon't you think that a data stream is a special case of this kind f stream that just happens to have a bunch f idiosyncratic names in it's API? It's not like these streams are a completely different idea.