Re: Calling conform from within a macro

2017-11-22 Thread Stanislav Yurin
Thanks a million! On Wed, Nov 22, 2017 at 15:59 Alex Miller wrote: > Your example does work, but it returns the conformed value [a b c] out of > the macro, which the compiler then tries to evaluate. So the exception is > coming downstream. > > See: > > user=> (macroexpand '(test-macro a b c)) >

Re: Calling conform from within a macro

2017-11-22 Thread Alex Miller
Your example does work, but it returns the conformed value [a b c] out of the macro, which the compiler then tries to evaluate. So the exception is coming downstream. See: user=> (macroexpand '(test-macro a b c)) [a b c] On Wednesday, November 22, 2017 at 1:08:22 AM UTC-6, Stanislav Yurin wr

Calling conform from within a macro

2017-11-21 Thread Stanislav Yurin
Hi, Please help me understand following behavior. Speccing macro via fdef and calling explain within a macro works, but conform tries to resolve all symbols. How to correctly conform macro body from within a macro? Longer example: This works: (spec/def ::test-spec (spec/* any?)) (spec/fdef tes