Skip to content

Instantly share code, notes, and snippets.

@MichaelBlume
Created December 11, 2014 23:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelBlume/4891dafdd31f0dcbc727 to your computer and use it in GitHub Desktop.
Save MichaelBlume/4891dafdd31f0dcbc727 to your computer and use it in GitHub Desktop.
; 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