News for hackers. Stuff that matters.
Re:A philosophical difference between Haskell and Lisp (2015) by kjeetgill on Sunday August 02, 2020 @04:58PM (#24031687)
Not super familiar either language, how does lazy evaluation promote the use of smaller functions?
Re:A philosophical difference between Haskell and Lisp (2015) by jokethrowaway on Sunday August 02, 2020 @05:02PM (#24031709)
In non-lazy languages you would need to implement laziness to manage composing functions and have good performance. An example being take 5 . filter ... If evaluation wasn't lazy you would run take 5, return the result to filter and so on.
Re:A philosophical difference between Haskell and Lisp (2015) by vc8f6vVV on Sunday August 02, 2020 @05:16PM (#24031841)
In the languages I use (Scala, Ruby) it's already done, Rust is using iterators which are lazy too. None of those languages are "lazy" in Haskell sense.
Re:A philosophical difference between Haskell and Lisp (2015) by layoutIfNeeded on Sunday August 02, 2020 @05:33PM (#24031964)