On Tue, Oct 19, 2010 at 5:22 PM, Alan <[email protected]> wrote:

> defrecord defines a java class, not a clojure entity. instead of :use,
> you need :import.
>
> (ns stuff.core
>  (:import (stuff phone-data)))


It's an even better practice to go ahead and create a factory fn for your
defrecord. Then consumers of your library don't need to import classes, they
can just use/require your library.

David

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to