Skip to content

fix(stdlib): a namespace map prints its keys in the map's own order - #168

Merged
skydread1 merged 2 commits into
developfrom
fix/namespace-map-key-order
Sep 2, 2026
Merged

fix(stdlib): a namespace map prints its keys in the map's own order#168
skydread1 merged 2 commits into
developfrom
fix/namespace-map-key-order

Conversation

@skydread1

Copy link
Copy Markdown
Member

Closes #165

  • lift-ns collects [key value] pairs into a vector and print-prefix-map takes those pairs, so #:a{...} prints in the order the map seqs instead of losing it once the accumulator outgrows an array-map.
  • qualified-ident? replaces the (or (keyword? k) (symbol? k)) guard.

…165)

lift-ns collects [key value] pairs into a vector and print-prefix-map takes
those pairs, so #:a{...} prints in the order the map seqs. lift-ns used to
accumulate into a map and rebuild with (apply conj (empty m) lm), so once
the accumulator outgrew an array-map the original order was gone.
qualified-ident? replaces the (or (keyword? k) (symbol? k)) guard, which
matches what upstream did in CLJ-2469.
@skydread1 skydread1 self-assigned this Sep 2, 2026
@skydread1
skydread1 merged commit d74ab39 into develop Sep 2, 2026
1 check passed
@skydread1
skydread1 deleted the fix/namespace-map-key-order branch September 2, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Namespace map printing reorders the keys

1 participant