Clojure

degenerate defrecords should act like empty maps

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.2
  • Component/s: None
  • Labels:
    None
  • Approval:
    Ok

Description

In the 1.2 beta1, empty defrecords misbehave, e.g.

(defrecord Foo [])
(seq (Foo.)) => () ; should be nil!

This also contributes to the broken .containsValue mentioned in http://groups.google.com/group/clojure/browse_thread/thread/5d27195d45b2d214/fb51906b2f960d4c

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - stu said: [file:bBn3fMJ3ar34yWeJe5cbLr]
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#403, #402)

Show
Assembla Importer added a comment - stu said: Updating tickets (#403, #402)
Hide
Assembla Importer added a comment -

stu said: Updating tickets (#340, #399, #402, #403, #413)

Show
Assembla Importer added a comment - stu said: Updating tickets (#340, #399, #402, #403, #413)

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: