Stream Proposal

dsimcha dsimcha at yahoo.com
Fri Mar 11 19:40:47 PST 2011


On 3/11/2011 10:14 PM, Jonathan M Davis wrote:
> On Friday, March 11, 2011 18:29:42 dsimcha wrote:
>> 3.  std.stdio.File should be moved to the new stream module but publicly
>> imported by std.stdio.  It should also grow some primitives that make it
>> into an input range of characters.  These can be implemented with
>> buffering under the hood for efficiency.
>
> ??? Why? File is not a stream. It's a separate thing. I see no reason to combine
> it with streams. I don't think that the separation between std.stdio and
> std.stream as it stands is a problem. The problem is the design of std.stream.
>
> - Jonathan M Davis

Isn't file I/O a pretty important use case for streams, i.e. the main one?


More information about the Digitalmars-d mailing list