On Dec 13, 8:38 pm, Alan Malloy <a...@malloys.org> wrote:
> Issue is in bean, not walk. walk calls (empty foo) on its collection,
> in order to make sure you get back a collection of the same type. bean
> maps are, I guess, some special type rather than an ordinary
> c.l.PersistentHashMap; and that type doesn't implement the full
> IPersistentCollection contract (ie, there's no implementation of
> empty).

I'm not so sure this is the right way to look at the issue.

clojure.walk doesn't work on records, for example, also because of a
missing implementation of empty, and for records it's definitely
arguable that they shouldn't support empty anyway even though they
*are* a logical target for walk.

Joost.

-- 
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

Reply via email to