Last active
August 29, 2015 14:01
-
-
Save pbostrom/9df62d5c086d87c1af7b 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
| ;; Don't unroll optional named arguments. | |
| ;; While it's nice for callers to not have to wrap optional named arguments in a map, | |
| ;; clearly specified configuration maps are laudable. | |
| (release-sharks 2 :laser-beams true) ; good | |
| (release-sharks {:laser-beams true} 2) ; better, the configuration is the least variance argument | |
| (release-sharks 2 {:laser-beams true}) ; bad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment