Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Sanity Check

Name: Anonymous 2009-09-25 19:16

Bad idea?
(defmacro letret (return-binding bindings &body body)
  `(let ,(cons return-binding bindings)
     ,@body
     ,(first return-binding)))

(defmacro letret* (return-binding bindings &body body)
  `(let* ,(cons return-binding bindings)
     ,@body
     ,(first return-binding)))

Name: Anonymous 2009-09-27 3:42

>>33
You know that that quote before the backquote breaks this macro right?

(defmacro prog-list (&body body)
  ``(,,@body))


might be closer to what you want, but why do this at all?


CL-USER> (prog-list 1 2 3)
(1 2 3)
CL-USER> '(1 2 3)
(1 2 3)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List