Cecil Westerhof <cldwester...@gmail.com> wrote:
> I read a little about it. And no, I do not use dynamic binding. So I
> probably should use atoms. Is there a convention how to name atoms?

Nope, none that I've come across anyway. Dynamic variables can have very
surprising effects if you're not aware you're dealing with them. This is
more of an issue in Common Lisp than in Clojure because in CL you can
rebind both dynamic and lexical variables with `let`, whereas in Clojure
`let` always produces a lexical binding (`binding` creates dynamic
bindings). With Atoms, the worst that happens is you forget to deref one
and you get an NPE or whatever.

Land of Lisp sounds like a fun book. My "books to read" stack is pretty
massive but I'll get to it eventually.

All the best,

John

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

Reply via email to