clojure-style-guide icon indicating copy to clipboard operation
clojure-style-guide copied to clipboard

Accepting default values for function parameters.

Open Droogans opened this issue 13 years ago • 1 comments

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.

Droogans avatar Feb 11 '13 01:02 Droogans

Clojurescript is also suggesting doing it this way. ctrl + f for "Named Parameters & Defaults":

http://himera.herokuapp.com/synonym.html

Droogans avatar Apr 18 '13 21:04 Droogans