With a function that uses keyword arguments using this style of function definition:
(defun some-name (&rest kwargs)
(plist-get kwargs 'example))
Is there a convenient way to ensure only supported keyword-arguments as passed in?
So a typo in a keyword argument doesn't pass by unnoticed.
plist-get
states in relevant part: "This function never signals an error." Therefore, you will need to set up your own rules prior to the call ofplist-get
, and also setup your own way to specify an error. If thekwargs
argument passes your test, then proceed to the call ofplist-get
.