with-unique-names choices



Hi

While looking for something, I found that the unique names macro is defined in eight different libs among the libs *I have* downloaded.

alexandria/macros.lisp:(defmacro with-unique-names (names &body forms)
arnesi/src/one-liners.lisp:(defmacro with-unique-names ((&rest bindings) &body body)
cffi/src/utils.lisp:(defmacro with-unique-names (symbols &body body)
cl-ppcre/util.lisp:(defmacro with-unique-names ((&rest bindings) &body body)
cl-utilities/with-unique-names.lisp:(defmacro with-unique-names ((&rest bindings) &body body)
drakma/util.lisp:(defmacro with-unique-names ((&rest bindings) &body body)
flexi-streams/util.lisp:(defmacro with-unique-names ((&rest bindings) &body body)
hunchentoot/util.lisp:(defmacro with-unique-names ((&rest bindings) &body body)

I do not know what action is needed if any :)

I have a related usage question that I'll ask in a separate thread.

-Antony
.



Relevant Pages

  • Re: how to bind a function generated by another function locally
    ... And of course one could make a macro for that construction ... (also taking the liberty of substituting a macrolet for the flet): ... (defmacro funlet (bindings &body body) ...
    (comp.lang.lisp)
  • Re: A "killer" macro
    ... uses a weak "macro" language to express these solutions. ... (defun hello-world () ... On-exit is supposed to queue the formto run on scope exit; ... (defmacro in-scope (&body body) ...
    (comp.lang.lisp)
  • 2 macros and passing gensyms around
    ... when (listp var-and-column-name) ... (defmacro bind-vars ((&rest vars) ... data &body body) ... The name would be created in the with-bindable-columns macro and used in the ...
    (comp.lang.lisp)
  • Re: is using WITH-SLOTS with structs portable?
    ... ((NULL OPT) ... (CAR OPTION)) ... DO: Define a macro: (WITH-object &body body) ...
    (comp.lang.lisp)
  • Re: Macro expansion semantics
    ... (defmacro foo (&body body &environment env) ... What you could do is shadow all macro-defining forms and create your own custom macro environment. ...
    (comp.lang.lisp)