Skip to content

How to return js expressions from a macro? #131

Answered by borkdude
ranfdev asked this question in Q&A
Discussion options

You must be logged in to vote

Actually after digging in some more, if you would return from the macro:

(vary-meta {} assoc :cherry.compiler/js true)

on the returned map, I think cherry might already translate it to a JS object at compile time.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@ranfdev
Comment options

@borkdude
Comment options

@ranfdev
Comment options

Comment options

You must be logged in to vote
2 replies
@borkdude
Comment options

Answer selected by ranfdev
@ranfdev
Comment options

Comment options

You must be logged in to vote
2 replies
@borkdude
Comment options

@ranfdev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants