Re: More questions about exported symbols and general style.



"Pillsy" <pillsbury@xxxxxxxxx> writes:

Well, two questions about exporting symbols, really. Say I want to set
up bindings to captured variables (like IT in anaphoric macros) in
packages that I'll be using. Do I want to just export IT and friends,
or should I walk through the code and replace them with gensyms or
something?

This is a bit of a tangent, but: don't write anaphoric macros. Making
names magically spring into existence without visible bindings is not
very Lispy.

When bindings are explicit, you don't have to worry about exporting
IT; the user can just use a symbol of their choosing. Plus, it nests
properly.

Zach
.



Relevant Pages

  • Re: More questions about exported symbols and general style.
    ... packages that I'll be using. ... This is a bit of a tangent, but: don't write anaphoric macros. ... names magically spring into existence without visible bindings is not ...
    (comp.lang.lisp)
  • Re: More questions about exported symbols and general style.
    ... This is a bit of a tangent, but: don't write anaphoric macros. ... names magically spring into existence without visible bindings is not ... but "magically springing into existence without visible bindings" is not one of them. ... you have to use define-symbol-macro and symbol-macrolet to bring symbol macros into existence. ...
    (comp.lang.lisp)
  • Re: More questions about exported symbols and general style.
    ... up bindings to captured variables (like IT in anaphoric macros) in ... names magically spring into existence without visible bindings is not ... but I do have various function-creating macros inspired by /On ...
    (comp.lang.lisp)
  • Re: More questions about exported symbols and general style.
    ... up bindings to captured variables (like IT in anaphoric macros) in ... packages that I'll be using. ... names magically spring into existence without visible bindings is not ...
    (comp.lang.lisp)
  • Re: More questions about exported symbols and general style.
    ... This is a bit of a tangent, but: don't write anaphoric macros. ... names magically spring into existence without visible bindings is not ... Now I have to stop using special variables and symbol-macros?!! ... Special variables and symbol macros don't have that problem. ...
    (comp.lang.lisp)