Details
-
Type:
Enhancement
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.2
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
I have included a patch with my original tests (pre deftype/defrecord split) plus a final patch to get things passing with the latest greatest.
The final commit is worth looking at. The reduced dynamism of deftype is visible, in that I used to be able to redefine a type multiple times in a series of tests, and am now relying on per-test named types. I think this tradeoff is worth it for unification with the host type system. But a bigger issue occurs when working at the REPL: you can reload types, but not refer to the reloaded ones.
Converted from http://www.assembla.com/spaces/clojure/tickets/240
Attachments:
initial-tests-for-protocols-and-types.patch - https://www.assembla.com/spaces/clojure/documents/c5lA0usxGr37xPeJe5d-aX/download/c5lA0usxGr37xPeJe5d-aX