Clojure

pop does not preserve meta-data

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: Release 1.3
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code

Description

As discussed with chouser on irc.

Example:

=> (meta (conj (with-meta '(1 2 3) {:my :meta}) 4))
{:my :meta}
=> (meta (pop (with-meta '(1 2 3) {:my :meta}))) 
nil

Both calls should yield the same result.

This occurs in 1.0.0 as well as trunk.

This might be part of a larger issue with when meta-data should be preserved (e.g., butlast).

Activity

Alexander Redington made changes -
Field Original Value New Value
Priority Blocker [ 1 ]
Approval None Vetted
Stuart Halloway made changes -
Assignee Stuart Halloway [ stu ]
Stuart Halloway made changes -
Assignee Aaron Bedra [ aaron ]
Reporter Assembla Importer [ importer ]
Priority Blocker [ 1 ] Major [ 3 ]
Alexander Taggart made changes -
Attachment 149.diff [ 10128 ]
Stuart Halloway made changes -
Fix Version/s Release.Next [ 10038 ]
Fix Version/s Approved Backlog [ 10034 ]
Approval Vetted Screened
Patch Code
Rich Hickey made changes -
Approval Screened None
Alexander Taggart made changes -
Attachment 149.diff [ 10128 ]
Rich Hickey made changes -
Status Open [ 1 ] Resolved [ 5 ]
Resolution Declined [ 2 ]
Stuart Halloway made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: