@mire.rooms/*rooms* is new to me.
could anybody explain to me?
-sun
(defn- mire-handle-client [in out]
(binding [*in* (reader in)
*out* (writer out)]
;; bindings doesn't work sequentially, so we need to nest them
;; otherwise the call to read-name uses the old value of *in*/
*out*
(binding [*name* (read-name)
*inventory* (ref [])
*current-room* (ref (@mire.rooms/*rooms* :start))]
On Jan 27, 8:45 pm, "Stephen C. Gilardi" <[email protected]> wrote:
> On Jan 27, 2009, at 3:57 PM, wubbie wrote:
>
> > Why defn ends with -(dash)?
>
> > (defn- mire-handle-client [in out]
>
> A good approach to finding out what a function does is to consult "doc":
>
> (doc defn-)
>
> --Steve
>
> smime.p7s
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---