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