clojure-style-guide
clojure-style-guide copied to clipboard
Accepting default values for function parameters.
After searching for how to apply default values for function parameters, I was pointed to a great example of some code here.
I am quite new to the language, so I won't go posting the first solution I find, but the above example seems very clear to me. Hopefully this will generate some discussion on how best to accomplish this.
Clojurescript is also suggesting doing it this way. ctrl + f for "Named Parameters & Defaults":
http://himera.herokuapp.com/synonym.html