== Quote from Mafi ([email protected])'s article
> Hi all,
> what are the directions of D2's streams. I heared std.stream is going to
> get deprecated in D2. I think it's good as long as
> BufferedFile.readLine() returns char[] instead of string. Is D2 going to
> get a Java-like stream model? What's wrong with the old one except that
> it's a bit out of date?
> Mafi
Two things off the top of my head:
1. std.stream doesn't correctly support files > 2GB on 32-bit Linux, and
possibly
on other OS's as well.
2. It doesn't have a range interface. I can't tell you how useful something
like
this is to me:
filter!"a.length > 0"(
map!strip(
File(myFilename).byLine()
)
);
That said, please don't use Java as a reference for how to design a stream API.
It just seems horribly verbose when trying to do something simple.