3 ms·
You'll find lispm's, from a sibling comment, even clearer: (defmacro debug-it (&body expressions) `(progn ,@(mapcar (lambda (expression)
by qwertyuiop924 10y ago
You'll find lispm's, from a sibling comment, even clearer:
(defmacro debug-it (&body expressions)
`(progn
,@(mapcar (lambda (expression)
`(format t "~%~a: ~a" ',expression ,expression))
expressions)))
That's Common Lisp. I probably could have made mine similarly clean, but I was too lazy to do so :-).
Anyways, hats off to lispm, because he's the one who actually did it.