[squeak-dev] Lazy evaluation?
Frank Shearar
frank.shearar at gmail.com
Sat Jul 9 17:54:23 UTC 2011
On 9 July 2011 18:52, Frank Shearar <frank.shearar at gmail.com> wrote:
> On 9 July 2011 18:44, Randal L. Schwartz <merlyn at stonehenge.com> wrote:
>>>>>>> "Frank" == Frank Shearar <frank.shearar at gmail.com> writes:
>>
>> Frank> That paper will mention the basic technique of lazy evaluation in a
>> Frank> strict language, which is just wrapping an expression up in a block:
>>
>> Frank> [self myExpression: param and: thatParam]
>>
>> Frank> Now you can pass that block - thunk - around, and evaluate it only
>> Frank> when required.
>>
>> There's also the whole "futures" thing. I think that's even close to
>> being in Squeak core.
>
> That's already in there - look at FutureMaker and, more importantly, FutureNode.
And before I forget, the Xtreams stream framework has a distinctly
lazy feel to it.
frank
More information about the Squeak-dev
mailing list
|