I just noticed your reference to (set! *print-meta* true) which does
actually show the meta in macroexpand (at least in my example):

(set! *print-meta* true)
(macroexpand `(do
                (schema.core/defn
                  ~(with-meta 'create {:always-validate true}) [])))
=> (do (schema.core/defn ^{:always-validate true} create []))

Secondly, I need to work a bit more to call myself a beginner with
macros, so take everything I say with a good dose of salt ;).

On 23 March 2015 at 08:41, Mike Thompson <[email protected]> wrote:
> On Monday, March 23, 2015 at 7:33:33 PM UTC+11, Mike Thompson wrote:
>> On Monday, March 23, 2015 at 7:00:58 PM UTC+11, Colin Yates wrote:
>> > `(do
>> >        (schema.core/defn
>> >          ~(with-meta 'create {:always-validate true})
>> >  ...
>> >
>> > worked for me.
>>
>>
>> Thanks, Colin.  So the version I need would look like this?
>>
>> (defmacro m
>>   [x]
>>   `(if-not  ~(with-meta 'js/goog.DEBUG {:tag boolean})  ~x))
>
>
> Sigh. Or maybe this:
>
> (defmacro m
>   [x]
>   `(if-not  (with-meta js/goog.DEBUG {:tag boolean})  ~x))
>
>
> I'll rig up a test tomorrow. Thanks.
>
> --
> Mike
>
> --
> 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 http://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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to