Andrei Alexandrescu wrote:

I totally agree. The useful spec of std.file.read should be "reads the file to exhaustion in a buffer and returns it"

Okay, that's a fair definition. So the correct behavior for reading an unbounded stream should be an out of memory error? This would be entirely reasonable, but any failure conditions should be described as well.

Reply via email to