Arc Forumnew | comments | leaders | submitlogin
1 point by shader 6036 days ago | link | parent

Pardon my ignorance, but what is anaphora as it relates to macros?


2 points by almkglor 6036 days ago | link

It's a macro which automagically binds a name. For example, 'afn:

  (afn ()
    (your-code))
  =>
  (let self nil
    (= self
      (fn ()
        (your-code))))
Or aif:

  (aif x
    (your-code))
  =>
  (let it x
    (if it
      (your-code)))

-----