Advertisement
Guest User

Defrecord doesn't play nicely with hyphenated namespaces

a guest
Aug 26th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;; scratch/record_types.clj
  2. (ns scratch.record-types)
  3.  
  4. (defrecord Example [field-1 field-2])
  5.  
  6.  
  7. ;; scratch/record_test.clj
  8. (ns scratch.record-test
  9.   (:require scratch.record-types)
  10.   (:import scratch.record-types.Example))
  11.  
  12. (def example (Example. :a :b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement