How would it work with macros defined in cljc file? IIUC cljc file is source both of functions and macros so it can be loaded twice.
On Sat, Feb 20, 2016 at 2:24 PM Mike Fikes <[email protected]> wrote: > Hi Nikita, > > Thanks for the comment in the ticket! (I'm sure such comments are > immensely helpful to David when ascertaining patch validity.) > > You are right about the loading twice. It will also result in populating > 'my.bar and 'my.bar$macros namespace entries in the compiler state, but, as > you can see, otherwise things work. > > I suppose, for production code (say, using a bar.cljc file), this might > cause a little concern. Perhaps in the future, if a defmacro is found in a > non-macro namespace, maybe the compiler would emit warnings or, worse, > error out. (No such guards preventing defmacro in runtime code exists > today.) > > > > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/clojurescript.
