When creating a macro that results in a binding the name of the global bound variables resolves into namespace bound names - this breaks the assert in clojurescripts let code.
(defmacro with-gl [[gl prog] & body]
`(binding [gl ~gl prog ~brog] ~@body))
(:require-macros [clgl.macros :as m]))
(with-gl [gl prog]
I'm not sure I follow. What does gl and prog get namespaced to?
I think he has a problem with
when expanding macro, and this produces error in clojurescript (no such ns exists in cljs).
Solution is to use
So IMO this issue is not a CLJS defect and should be closed.