Closed alexott closed 11 years ago
The wrap-keyword-params
already translates parameter names into keywords, so a :keywords?
option is unnecessary.
As for why it uses the former syntax instead of the latter, it's because it's much easier to work with option maps when they are not expanded out. Compare:
(wrap-json-params handler options)
To:
(apply wrap-json-params handler (apply concat options))
I should also point out that the former syntax is more commonly used.
Also, this has been discussed before in #1.
And in #4 as well...
Thank you for explanation, I'll close the pull request.
This patch allows to specify :keywors? argument to wrap-json-params handler
P.S. btw, why the explicity map is used for options like:
instead of more standard
?