Hi,

On Feb 18, 4:34 pm, Rowdy Rednose <rowdy.redn...@gmx.net> wrote:

> better-unique is not too far off from my initial approach, but still,
> why no side effects?

Here an example, where side-effects are the gotcha:
http://groups.google.com/group/clojure/browse_thread/thread/d8fe58489e913433

(filter #(mod % (rand-int 10)) (range 100))

I think side-effects should be read as in transients: if no one sees
the side effect, is there one? "Your" side-effect is local to your
predicate. However the side-effect in rand-int is not!

Maybe as a rule of thumb?

Sincerely
Meikel

-- 
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

Reply via email to