[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Formal Comment: what is the required behavior of 'lazy'?



On Thu, Jun 28, 2012 at 1:12 AM, Eli Barzilay <eli@x> wrote:
> Four hours ago, Alex Shinn wrote:
>> On Wed, Jun 27, 2012 at 7:11 PM, Eli Barzilay <eli@x> wrote:
>> > 6 hours ago, Alex Shinn wrote:
>> >>
>> >> (where lazy has been renamed delay-force).
>> >
>> > `delay-force' would a bad name becuase it's an implementation
>> > description.  Except that in this case that description is wrong,
>> > making "bad name" an understatement.
>>
>> This is purely subjective.
>
> The attempted analogy is objectively broken.
>
>
>> There were complaints that 'lazy' was confusing, and put extra
>> burden on programmers to remember when to use delay and when to use
>> lazy.
>
> With both present, there is an easy way to remember which one to
> choose: `lazy'.

`delay' is useful for many other things besides streams,
where `lazy' would not be applicable.

-- 
Alex

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports