Hello!
Is it possible in common lisp to write macro which interprets part of arguments like defmacro and other part like defun?
For example, something like:
PS2: Of course it is easy to write a small language "embedded" in lisp in with it is possible, but I'm looking for more lisp-conventional solution.
Thanks.
Is it possible in common lisp to write macro which interprets part of arguments like defmacro and other part like defun?
For example, something like:
(def-amazing-macro leopard (dog &value cat)
`(if ,dog "war is over" cat))
(let ((x "happy old year"))
(leopard (> 4.99 5) x))
;; it should give:
"happy old year"
PS1: i ask you for fun not for studies PS2: Of course it is easy to write a small language "embedded" in lisp in with it is possible, but I'm looking for more lisp-conventional solution.
Thanks.