I am wondering how one writes macros in Common Lisp that allow him to part with Lisp forms in calls to the former.
For instance, suppose I have the following macro:
(defmacro define-route ((app uri method) &body body) `(setf (ningle:route ,app ,uri :method ,method) ,@body)) A call to it would look something like this:
(define-route (*app* "/" :GET) (print "Welcome to ningle using GET!")) What if one wanted to write a macro that could be called like this:
@route(*app*, "/", :GET) or like this:
route: *app*, "/", :GET Is this possible? I have seen the @route syntax somewhere before but am not sure how to implement it, nor do I remember what it was called to look it up again.