How can I simulate macros in JavaScript?

后端 未结 8 1153
悲哀的现实
悲哀的现实 2020-12-05 10:02

I know that JavaScript doesn\'t support macros (Lisp-style ones) but I was wondering if anyone had a solution to maybe simulate macros? I Googled it, and one of the solution

8条回答
  •  情歌与酒
    2020-12-05 10:47

    LispyScript is the latest language that compiles to Javascript, that supports macros. It has a Lisp like tree syntax, but also maintains the same Javascript semantics. Disclaimer: I am the author of LispyScript.

提交回复
热议问题