plumatic / plumbing

Prismatic's Clojure(Script) utility belt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Allow arity 0 calls for fnks when all args have defaults

mschulkind opened this issue · comments

Title pretty much says it all.

Example:

(defnk foo [{a 1} {b 2}] ...)

Right now I seem to have to call this as (foo {}) would be nice to be able to just use (foo).

Thanks for the suggestion; but in my opinion losing the simplicity and explicitness that "a fnk takes a single map argument" is not worth the small convenience gained in this relatively rare case.