Re: where is defvar?

2011-11-14 Thread Alan Malloy
(def name doc init)

On Nov 14, 4:03 pm, Brad b...@beaconhill.com wrote:
 I'm working on moving to Clojure 1.3

 Some code is using defvar which use to be in clojure.contrib.def

 http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
 mentions that contrib.def partially migrated to clojure.core.incubator
 but this new library doesn't  appear to have it.

 Is there somewhere else I should look?

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


Re: where is defvar?

2011-11-14 Thread Brad
Thanks. I couldn't find this mentioned anywhere so I added a comment
on clojuredocs

http://clojuredocs.org/clojure_contrib/clojure.contrib.def/defvar



On Nov 14, 7:26 pm, Alan Malloy a...@malloys.org wrote:
 (def name doc init)

 On Nov 14, 4:03 pm, Brad b...@beaconhill.com wrote:







  I'm working on moving to Clojure 1.3

  Some code is using defvar which use to be in clojure.contrib.def

 http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
  mentions that contrib.def partially migrated to clojure.core.incubator
  but this new library doesn't  appear to have it.

  Is there somewhere else I should look?

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


Re: where is defvar?

2011-11-14 Thread Sean Corfield
I've updated Where Did Clojure Contrib Go to indicate this. Happy to
take other suggestions for updates!

On Mon, Nov 14, 2011 at 6:36 PM, Brad b...@beaconhill.com wrote:
 Thanks. I couldn't find this mentioned anywhere so I added a comment
 on clojuredocs

 http://clojuredocs.org/clojure_contrib/clojure.contrib.def/defvar

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


Re: where is defvar?

2011-11-14 Thread Phil Hagelberg
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.

-Phil

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


Re: where is defvar?

2011-11-14 Thread Alan Malloy
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


Re: where is defvar?

2011-11-14 Thread Phil Hagelberg
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