News for hackers. Stuff that matters.
Re:Kotlin M7 by midas007 on Thursday March 20, 2014 @10:58AM (#7435891)
Does anyone know of a specific production use-case where coding for eager evaluation (Idris, OCaml) is more straightforward and predictable when lazy evaluation could be cheaper on computing resources (Haskell)? When does lazy evaluation become too nondetermistic or painful that eager becomes more reliable? (Scala could probably go in either bucket.)
Re:Kotlin M7 by mercurial on Thursday March 20, 2014 @11:11AM (#7435983)
Well, I'd say most of the time... Where I find laziness (or "laziness implemented via iterators") worthwhile is when working with collections. But I much prefer the bits that care about such thing to explicitly return an iterator, the bits which don't to be able to operate either on iterators or concrete collections, and me to have a better idea of how much space and time will be consumed.