I tried the clojurescript.io on Chrome as well, and see the following with defmacro:
cljs.user=> (defmacro somemacro [] 5) true cljs.user=> (somemacro ) Wrong number of args (0) passed to cljs.user/somemacro at line 1 cljs.user=> (somemacro) Wrong number of args (0) passed to cljs.user/somemacro at line 1 cljs.user=> (somemacro 1) Wrong number of args (1) passed to cljs.user/somemacro at line 1 cljs.user=> (somemacro 2) Wrong number of args (1) passed to cljs.user/somemacro at line 1 cljs.user=> On Monday, December 28, 2015 at 3:29:30 PM UTC+1, Mike Fikes wrote: > Hi Zubair, > > It works in clojurescript.io on iPhone Safari. > > But, it would be interesting to separate the macro use from the alert. > > (The macro is incorrectly being used directly in the same compilation stage > where it is being defined—instead it needs to be separately brought in via > :require-macros). > > See: > https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure#macros > > - Mike > > > > On Dec 28, 2015, at 8:54 AM, Zubair Quraishi <zuba...@gmail.com> wrote: > > > > I've noticed that the following bootstrapped Clojurescript works in Chrome > > and Firefox using eval, but not on Webkit browsers such as iPhone, Safari, > > iPad: > > > > (ns some-namespace) > > > > (defmacro some-macro [& more] 5 ) > > (js/alert (pr-str (some-macro 1))) > > > > It should alert 5 on the screen but in Webkit the browser crashes. I've > > tested in Clojurescript 1.7.189 and 1.7.170 > > > > Anyone experienced anything similar? > > > > -- > > Note that posts from new members are moderated - please be patient with > > your first post. > > --- > > You received this message because you are subscribed to the Google Groups > > "ClojureScript" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to clojurescript+unsubscr...@googlegroups.com. > > To post to this group, send email to clojurescript@googlegroups.com. > > Visit this group at https://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.