Whenever you want to get insight in how a macro is rewriting your code, try 
evaluating your form quoted with macroexpand. 

Here's a gist with the macroexpansion each form. 

https://gist.github.com/aamedina/542b084d31d4e0c9a7a8

Hopefully the expansion makes things clear! 

On Thursday, December 11, 2014 6:11:59 PM UTC-5, Michael Blume wrote:
>
> If I make my defaults on a :keys :or destructuring depend on the values of 
> other keys, I *can* get a compile-time error, depending on what order I 
> give the keys https://gist.github.com/MichaelBlume/4891dafdd31f0dcbc727
>
> Is this on-spec behavior? Should the former be allowed but not the latter? 
> Should both be allowed? Should neither?
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to