Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Declined
-
Affects Version/s: Release 1.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch:Code and Test
-
Approval:Not Approved
Description
user=> (binding [*print-dup* true] (print-str (hash-map :k :v)))
"{:k :v}"
user=> (binding [*print-dup* true] (print-str {:k :v}))
"#=(clojure.lang.PersistentArrayMap/create {:k :v})"
In the top example, the reader will automatically create an array-map due to the number of entries, so unless there is an overriding reason to force type-preservation in the bottom example, it can likewise be printed as a literal map.
Attachments
Activity
Alexander Taggart
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | print-dup-array-maps.patch [ 10234 ] | |
| Approval | Test | |
| Patch | Code and Test |
Rich Hickey
made changes -
| Approval | Test | None |
Rich Hickey
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Declined [ 2 ] |