Greetings, The nuance below took a long time to identify and reduce from a test failure. Should it be considered a bug?
$ lein repl nREPL server started on port 52758 on host 127.0.0.1 REPL-y 0.3.0 Clojure 1.6.0 <snipped> user=> (defrecord Fields0 []) ; record with 0 fields user.Fields0 user=> (defrecord Fields1 [f]) ; record with 1 field user.Fields1 user=> (def f0 (->Fields0)) ; instance with empty map #'user/f0 user=> (def f0x (map->Fields0 {:x 0})) ; instance with not-empty map, due to extra field #'user/f0x user=> (def f1 (map->Fields1 {})) ; instance with not-empty map, declared field is nil #'user/f1 user=> f0 #user.Fields0{} user=> f0x #user.Fields0{:x 0} user=> f1 #user.Fields1{:f nil} user=> (eval f0) ; *** morphs to empty map on eval *** {} user=> (eval f0x) ; self-evaluates when non-empty map, field added #user.Fields0{:x 0} user=> (eval f1) ; self-evaluates when non-empty map, declared field #user.Fields1{:f nil} user=> Greg p.s. A little help with "not quite getting refs"<https://groups.google.com/forum/#!topic/clojure/o9FiG1kCt6I>, please? Or is this the wrong forum for such a question? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.