Re: bug in clojure.walk in 1.3

2011-12-16 Thread Joost
On Dec 13, 8:38 pm, Alan Malloy 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 impl

Re: bug in clojure.walk in 1.3

2011-12-16 Thread Stuart Sierra
Please create a JIRA ticket for adding 'empty' support to `bean`. -S -- 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

Re: bug in clojure.walk in 1.3

2011-12-13 Thread Cedric Greevey
On Tue, Dec 13, 2011 at 2:51 PM, Alan Malloy wrote: > On Dec 13, 11:36 am, Stuart Sierra > wrote: >> It's not clojure.walk, it's bean: >> >> user=> (empty (bean "hi")) >> AbstractMethodError >> clojure.lang.APersistentMap.empty()Lclojure/lang/IPersistentCollection; >> clojure.core.proxy$clojure.l

Re: bug in clojure.walk in 1.3

2011-12-13 Thread Alan Malloy
On Dec 13, 11:36 am, Stuart Sierra wrote: > It's not clojure.walk, it's bean: > > user=> (empty (bean "hi")) > AbstractMethodError > clojure.lang.APersistentMap.empty()Lclojure/lang/IPersistentCollection; > clojure.core.proxy$clojure.lang.APersistentMap$0.empty (:-1) > > The generated class doesn'

Re: bug in clojure.walk in 1.3

2011-12-13 Thread Phil Hagelberg
On Tue, Dec 13, 2011 at 11:38 AM, Alan Malloy 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 typ

Re: bug in clojure.walk in 1.3

2011-12-13 Thread Alan Malloy
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 (i

Re: bug in clojure.walk in 1.3

2011-12-13 Thread Stuart Sierra
It's not clojure.walk, it's bean: user=> (empty (bean "hi")) AbstractMethodError clojure.lang.APersistentMap.empty()Lclojure/lang/IPersistentCollection; clojure.core.proxy$clojure.lang.APersistentMap$0.empty (:-1) The generated class doesn't implement the 'empty' method. Please file a JIRA ti