www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Lazy?

reply "Tim Matthews" <tim.matthews7 gmail.com> writes:
Did D invent the 'lazy' evaluation.  
http://digitalmars.com/d/2.0/lazy-evaluation.html

I've just noticed that there is a System.Lazy<T> class in .net 4.0 but  
havern't heard much more about it.
May 26 2009
next sibling parent hasen <hasan.aljudy gmail.com> writes:
Tim Matthews wrote:
 Did D invent the 'lazy' evaluation. 
 http://digitalmars.com/d/2.0/lazy-evaluation.html
 
 I've just noticed that there is a System.Lazy<T> class in .net 4.0 but 
 havern't heard much more about it.

hehe, no man, its been in functional languages all along
May 26 2009
prev sibling parent Ary Borenszweig <ary esperanto.org.ar> writes:
Tim Matthews wrote:
 Did D invent the 'lazy' evaluation. 
 http://digitalmars.com/d/2.0/lazy-evaluation.html
 
 I've just noticed that there is a System.Lazy<T> class in .net 4.0 but 
 havern't heard much more about it.

Nah, lazy evaluation already exists in Haskell and also in lambda calculus. Wikipedia has some information, but not much: http://en.wikipedia.org/wiki/Lazy_evaluation
May 26 2009