|
Jorge Duenas |
Posts by Jorge Duenas
|
01 Jan 2010, 16:50
Jorge Duenas (1 post) |
Hello, I am a Clojure beginner puzzled by the following snippet (from Chapter 1, “Adding Shared State”; can also be found at the bottom of
(def visitors (ref #{}))
(defn hello
[username]
(dosync
(let [past-visitor (@visitors username)] ; <--------- visitors is a global!
; etc ....
I mean, Jorge |
1 post
