Hi Laurent,

Am 03.03.2009 um 17:03 schrieb Laurent PETIT:

Why should there ever be the need to call dorun?


If you still want to force a veeerry long seq for side effect, without fearing to face an OutOfMemory error ?

  (let [some-loooong-seq ....]
    (dorun some-loooong-seq)
    ...)

How does dorun help here? In such a scenario
dorun only helps, if you don't hold onto the head.
But that means you loose the seq immediately
without using the return value at all. So you made
the seq purely for side-effects. And at that point
I boldly claim you should have used doseq in the
first place....

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to