On 02/07/2012 06:49 AM, H. S. Teoh wrote:
....
In D, however, I did not expect this stream/stdio divide to exist,
though I suppose the name "std.stdio" is a kind of giveaway. In any
case, std.stdio is used all over the place in D docs and tutorials,
besides write/writeln() being a pet example motivating variadic
templates, so it seems to hold the equivalent place to<iostream> in
C++. As such, I found it strange that this divide between streams and
stdio files still persists in D. I would have thought that D should have
integrated the two seamlessly into a single subsystem (or otherwise
redesigned it in a more logical fashion), rather than perpetuating the
schizophrenic divide inherited from C/C++.
T
To be exact, your comparison is between Phobos/STL, not D/C++.