On Apr 30, 12:34 pm, Mark Engelberg <mark.engelb...@gmail.com> wrote:
> On Thu, Apr 30, 2009 at 6:01 AM, Rich Hickey <richhic...@gmail.com> wrote:
> > Then, you need to know which operations require metadata propagation.
> > That's built into the Clojure data structures but can't be retrofitted
> > to arbitrary types.
>
> Is there a list of which operations propagate metadata?  I know I've
> been surprised a couple of times.  In particular, I have had trouble a
> couple of times where I was using lists and was surprised that the
> list operations did not propagate metadata.  I'd like to better
> understand the overall plan of which do and do not.

I don't want to revisit (yet again) the duality of lists as cells and
collections, but metadata propagates wherever it can without causing a
copy, i.e. you shouldn't be surprised that rest doesn't propagate
metadata.

However, there isn't a list, and metadata propagation could use an
audit. If there's a specific case where you think it should and it
doesn't please let me know.

Rich


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