Clojure

Clojure transforms literals of custom IPersistentCollections not created via deftype/defrecord to their generic clojure counterpart

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Approval:
    Triaged

Description

user=> (class (eval (sorted-map 1 1)))
clojure.lang.PersistentArrayMap ;; expected: clojure.lang.PersistentTreeMap

Activity

Hide
Alex Miller added a comment -

Seems related to CLJ-1093.

Show
Alex Miller added a comment - Seems related to CLJ-1093.
Hide
Nicola Mometto added a comment -

The symptoms are indeed similar but there are differences: CLJ-1093 affects all empty IPersistentCollections, this one affects all {ISeq,IPersistentList,IPersistentMap,IPersistentVector,IPersistentSet} collections that are not IRecord/IType.

Show
Nicola Mometto added a comment - The symptoms are indeed similar but there are differences: CLJ-1093 affects all empty IPersistentCollections, this one affects all {ISeq,IPersistentList,IPersistentMap,IPersistentVector,IPersistentSet} collections that are not IRecord/IType.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated: