Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
henryw374 opened this issue Sep 8, 2021 · 0 comments
Open

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

henryw374 opened this issue Sep 8, 2021 · 0 comments

Comments

@henryw374
Copy link

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}

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

No branches or pull requests

1 participant