Created
December 11, 2014 23:09
-
-
Save MichaelBlume/4891dafdd31f0dcbc727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; passes | |
(let [{:keys [bar foo] | |
:or {foo 1 | |
bar (inc foo)}} {}] | |
(assert (= foo 1)) | |
(assert (= bar 2))) | |
; does not compile | |
(let [{:keys [foo bar] | |
:or {foo 1 | |
bar (inc foo)}} {}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment