Hi!
Looking at (defgeneric retrieve-by-sql (sql &key binds) it seems that :binds can be &optional instead of a key param:
(mito:retrieve-by-sql "select * from users where email = $1" :binds (list *default-email*))
;; vs
(mito:retrieve-by-sql "select * from users where email = $1" (list *default-email*))
Is there a specific reason for using :binds here instead of just an &optional (or &rest)?
Hi! Looking at
(defgeneric retrieve-by-sql (sql &key binds)
it seems that:binds
can be&optional
instead of a key param:Is there a specific reason for using
:binds
here instead of just an&optional
(or&rest
)?Thanks!