dimitri/el-get — Issue #528: Use keyword arguments in el-get-register-method for optional args
Author: DarwinAwardWinner
Created: 2012-02-01 23:05:08+00:00
State: open

The function signature for `el-get-register-method` has gotten pretty long, with a total of 7 args now, 3 of them optional. We could used `defun*` from the cl package to define keyword arguments, so that instead of this:

(el-get-register-method
:http #'el-get-http-install #'el-get-http-install #'el-get-rmdir
#'el-get-http-install-hook nil #'el-get-http-compute-checksum)

we would have something like this:

(el-get-register-method :http
:install #'el-get-http-install
:update #'el-get-http-install
:remove #'el-get-rmdir
:install-hook #'el-get-http-install-hook
:compute-checksum #'el-get-http-compute-checksum)

Does this seem like a worthwhile thing to do? I think it follows the same idea as el-get recipes, being both a recipe for registering a method and a concise declarative description of the method.