Nevermind, I just noticed it was marked to be applied in 1.5.

On Sunday, April 14, 2013 11:36:45 PM UTC+2, Max Penet wrote:
>
> into doesn''t preserve metadata (clj-1.4). 
>
> > (meta (into (with-meta {} {:foo :bar}) {}))
> nil
>
> There was an Issue about it, but it was closed: 
> http://dev.clojure.org/jira/browse/CLJ-916 
>
>
>
> On Sunday, April 14, 2013 11:01:26 PM UTC+2, Marko Topolnik wrote:
>>
>> Yes, it is meant to preserve metadata, as well as all other core 
>> functions of such kind. Clojure is dedicated to doing the right thing with 
>> metadata wherever there is an obvious "right thing" to do. If you find a 
>> case where it doesn't preserve meta, you probably have a bug to report.
>>
>> -marko
>>
>> On Sunday, April 14, 2013 10:41:45 PM UTC+2, JvJ wrote:
>>>
>>> I've noticed that the conj operation seems to preserve metadata in most 
>>> cases:
>>>
>>> >(meta (conj (with-meta [] {:a 1}) 5))
>>> {:a 1}
>>>
>>> However, I'm not sure if this is something I can depend on, or if it's 
>>> just a fluke.
>>> Is this "part of the spec", as it were?
>>>
>>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to