Skip to content

Error: No reader function for tag tailrecursion.priority-map #14

Description

@danielcompton

When we do pr-str and then read-string on a priority map, the reading fails.

I think this is because the priority-map reader is registered as a string, not a symbol.

CleanShot 2022-08-25 at 19 39 50@2x

To reproduce:

(cljs.reader/read-string (pr-str (pm/priority-map :a 1)))

To fix:

(cljs.reader/register-tag-parser! 'tailrecursion.priority-map pm/read-priority-map)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions