Skip to content

dict-compile macro doesn't evaluate symbols #54

@lorddoig

Description

@lorddoig

I'm sure the title is explanation enough for seasoned macro-writers like yourselves, but for completeness:

(def dict {:en {:greetings {:hello "world"}}})
(def compiled-dict (tower-macros/dict-compile dict))

fails because the library functions that actually compile the dictionary are given the symbol dict instead of the map.

I'm new enough to Clojure that anything but simple macros make my head spin: I've tried and failed to fix this. I know it's easily worked around by just putting the dictionary in another file and passing in a string but I'm filing this anyway as I'm guessing this should be fixed/documented at some point.

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