Arc Forumnew | comments | leaders | submitlogin
1 point by Pauan 5212 days ago | link | parent

Alright, fair enough. But what if there was a built-in macro like =* that could be defined like so:

  (mac =* args
    `(do ,@(map (fn ((n v))
                  `(= ,n ,v))
                (pair args))))

  (macex1 '(=* a b c d e f)) -> (do (= a b) (= c d) (= e f))
Voila, now both cases are handled in a nice and easy fashion.