==========================
== Zhuo Hong Wei's Blog ==
==========================
Any and everything

My First Common Lisp Macro

I have always been curious about Common Lisp macros and I finally dipped my toes into Common Lisp. Today I wrote my first macro to replicate ordered execution like (BEGIN expr1 expr2 …) in Scheme.

(defmacro begin (&rest args)
    `(let ((ret 
           ((lambda () ,@args))
           )) 
            ret))