Laziness is a useful property, but it is not without its disadvantages, particularly in terms of predictable performance. For example, code involving lazy seqs is more prone to memory leaks than iterators are.
Eager evaluation is a simpler approach, in terms of both code and predictability. Eager evaluation fails fast, and has predictable performance characteristics. Laziness is a useful tool to have in one's arsenal, but I don't believe it should be the norm, as most of the time it's not necessary. Of course, most Haskell users would probably disagree with me :) - James On 8 July 2014 14:13, Ashish Negi <thisismyidash...@gmail.com> wrote: > I am new to clojure and finding it great.. :) > > I came across a paper - Why functional programming matters ? > at www.cs.kent.ac.uk/people/staff/dat/miranda/whyfp90.pdf > > > > to quote it : > "This paper is also relevant to the present controversy over lazy > evaluation. > Some believe that functional languages should be lazy; others believe they > should not. Some compromise and provide only lazy lists, with a special > syntax > for constructing them (as, for example, in Scheme [1]). This paper provides > further evidence that lazy evaluation is too important to be relegated to > *secondclasscitizenship*. It is perhaps the most powerful glue functional > programmers > possess. One should not obstruct access to such a vital tool." > > I know that if you people have taken some important decision for clojure, > it must had been after some thoughts. > > Was it difficult to implement or not that good ? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.