OutputRange should be infinite?
SeeWebsiteForEmail at erdani.org
Tue Oct 9 11:18:30 PDT 2012
On 10/9/12 11:52 AM, monarch_dodra wrote:
> On Tuesday, 9 October 2012 at 15:27:44 UTC, Steven Schveighoffer wrote:
>> On Tue, 09 Oct 2012 09:39:32 -0400, monarch_dodra
>> <monarchdodra at gmail.com> wrote:
>>> On Tuesday, 9 October 2012 at 13:22:28 UTC, Steven Schveighoffer wrote:
>>> I tend to disagree with your examples, because, you are mixing the
>>> notion of run-time failure with logic error.
>> They are one and the same.
>> Putting into a file that runs out of disk space, and putting into an
>> array that runs out of memory.
> I'm not convinced.
> A file running out of memory is an implementation defined limitation
> that is out of the field of control of the developer, just as much as an
> An array that runs out of memory is predictable logic error. The problem
> is that we aren't giving the developer the tools required to predict it.
I agree with this distinction. In brief a disk getting full is an
exceptional occurrence whereas a non-appendable structure running out of
room is a different category of error.
More information about the Digitalmars-d