Skip to content

Instantly share code, notes, and snippets.

@danielribeiro
Created July 20, 2013 00:30
Show Gist options
  • Save danielribeiro/6043289 to your computer and use it in GitHub Desktop.
Save danielribeiro/6043289 to your computer and use it in GitHub Desktop.
simple class macro in wisp
(defmacro class [name]
`(set! ~name
(do (defn ~name []) ~name ))
)
(class A)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment