[squeak-dev] Lazy evaluation?
Randal L. Schwartz
merlyn at stonehenge.com
Sat Jul 9 18:11:41 UTC 2011
>>>>> "Randal" == Randal L Schwartz <merlyn at stonehenge.com> writes:
>>>>> "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.
Randal> There's also the whole "futures" thing. I think that's even close to
Randal> being in Squeak core.
Not even "close to". See "Promise" class in Squeak 4.2.
1 future + 1 "becomes 2 when sent #value".
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion
More information about the Squeak-dev