Arc Forumnew | comments | leaders | submitlogin
2 points by rocketnia 3638 days ago | link | parent

If you don't mind me suggesting...

  (mac match (regex (o subject 'it))
    `(match-str ,regex ,subject))
(Note that this rejects argument lists of lengths other than 1 or 2, whereas yours doesn't.)

And yeah, that is a good use of it. ^_^ An anaphoric parameter.

1 point by jazzdev 3638 days ago | link

Thanks for the improvement. Much shorter and more readable that way. And error checking as you mentioned.