Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
import
importLabels
Approval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created November 8, 2012 at 2:20 PM
Updated February 14, 2014 at 7:54 PM
Resolved February 14, 2014 at 7:54 PM
Problem: clojure.walk throws exceptions if used on records.
user=> (defrecord Foo [x]) user.Foo user=> (def f (Foo. :x)) #'user/f user=> (use 'clojure.walk) nil user=> (postwalk identity {:foo f}) UnsupportedOperationException Can't create empty: user.Foo user.Foo (NO_SOURCE_FILE:1)
Current Patch: 0001-CLJ-1105-Support-records-in-clojure.walk.patch adds a special case for records.
See also: https://clojure.atlassian.net/browse/CLJ-1239#icft=CLJ-1239 "faster, more flexible dispatch for clojure.walk" which could supersede this ticket.
Screened by: Alex Miller - I think this will likely be superseded by https://clojure.atlassian.net/browse/CLJ-1239#icft=CLJ-1239 in the future, but this is a reasonable short-term step.