Skip to content

Instantly share code, notes, and snippets.

/gist:4053357
Created Nov 11, 2012

Embed
What would you like to do?
Problem with proxy
(defn build-ast
[tree]
(let [state (atom [3])
visitor (proxy [GooddataBaseVisitor] []
(visitMetricExpr
[context]
(swap! state (fn [x] [1]))))]
(. visitor visit tree)
(deref state)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.