Hi folks,

Is there a way to specify default values for the fields of a
defrecord?  Or barring that, is there a way to override or augment the
constructor for the record?

That is, if I have:

(defrecord Foo [a b c d e f g])

I want to be able to create a new Foo with:

(Foo.)

and have default values assigned to each of the fields (a, b, c, etc).

Right now I am just creating my own new-foo function that calls the
constructor with the default values, but I would like to have
something more self contained.

Thanks,
--Darren

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