Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active May 2, 2017 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/355f2342c1433fa556a7168f7d740e7f to your computer and use it in GitHub Desktop.
Save deque-blog/355f2342c1433fa556a7168f7d740e7f to your computer and use it in GitHub Desktop.
(walk/macroexpand-all '(add 1 2)) ;; Expanding the function call
=> (add 1 2) ;; Unchanged after compilation
(walk/macroexpand-all '(add-m 1 2)) ;; Expanding the macro
=> 3 ;; A constant after compilation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment