Oh, I was thinking of defvar from Common Lisp. I didn't realize contrib's
version was different; curious.

-Phil
On Nov 14, 2011 8:37 PM, "Alan Malloy" <a...@malloys.org> wrote:

> On Nov 14, 7:44 pm, Phil Hagelberg <p...@hagelb.org> wrote:
> > On Mon, Nov 14, 2011 at 4:26 PM, Alan Malloy <a...@malloys.org> wrote:
> > > (def name doc init)
> >
> > Actually defvar is more like defonce.
>
> Huh? I don't see any defonce semantics at
>
> https://github.com/clojure/clojure-contrib/blob/master/modules/def/src/main/clojure/clojure/contrib/def.clj#L23
>
> (defmacro defvar
>  "Defines a var with an optional intializer and doc string"
>  ;; ...extra arities elided...
>  ([name init doc]
>     (list `def (with-meta name (assoc (meta name) :doc doc)) init)))
>
> --
> 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 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