Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 4465 days ago | link | parent

Is there a manual workaround for macros' limitations with splice? The way we use gensyms to get around their limitations with variable capture?

I've been playing with this idea:

  (def quotify(f) (fn 'args (f @args)))
Now I can turn the final example into:

  wart> = x '(1 2)
  wart> (and @(quotify.list x))
  (1 2) ; woohoo!
However it doesn't seem to help with the definition of all-true..