Skip to content

possible new feature: tagged literal, recursive version of #js #28

@henryw374

Description

@henryw374

I built https://github.com/henryw374/js-literal which provides a literal #j/s which is a recursive version of #js.

Someone pointed out that j/lit macro is similar - and actually it produces better js than my code.

A reader function could be written such as.

(defn read-js [form]
  (j/lit* form))

with a data_readers.cljc file provided with this lib e.g.

{applied-science/js applied-science.js-interop/read-js}

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