On Tue, Sep 27, 2011 at 1:54 PM, Nathan Sorenson <n...@sfu.ca> wrote:
> Should IPersistentCollection even be defining 'empty', if one of the > language's key data types doesn't support it? I think it would be better to > either pull 'empty' into it's own protocol so clojure.walk doesn't match on > IPersistentCollection when walking a data structure with the false > expectation that it can create an empty version, or rename 'empty' it to > something that records can implement, like 'default.' This is a fair point. ClojureScript fixes this by providing IEmptyableCollection. David -- 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