Arc Forumnew | comments | leaders | submitlogin
1 point by conanite 3367 days ago | link | parent

One way to make this possible is to have your 'html macro (I'm assuming it's a macro) unhygienically provide a lexical binding for 'pr for its body

  (mac html body
    `(do (pr "<html>")
         (let pr prnil ,@body)
         (pr "</html>")))
That way your callers can use 'pr like they're used to, but secretly and subversively you have them calling your own private pr function.

1 point by jazzdev 3366 days ago | link

That's a clever way to do it. Thanks.