[LOGIC-53] core.logic converts defrecords to maps in it's query results Created: 18/Sep/12 Updated: 28/Jul/13 Resolved: 02/Jan/13
|Reporter:||Martin Trojer||Assignee:||David Nolen|
0.7.5 or 0.8-alpha
|Comment by David Nolen [ 19/Sep/12 12:02 PM ]|
Records are IPersistentMaps. core.logic doesn't know anything about your custom type so it returns the type it knows how to unify.
If you want core.logic to work with your record you need to implement the unification protocols for you record. But of course that's a little tedious if you have many different records.
Open to better ideas. The relevant code where this unexpected behavior occurs is the implementation of IWalkTerm for the core Clojure data types.
|Comment by David Nolen [ 02/Jan/13 7:18 PM ]|