Skip to content
Snippets Groups Projects
Commit e8fbeb9b authored by lovrolu's avatar lovrolu
Browse files

Improve WITH-GENSYMS docstring

parent d44f543c
No related branches found
No related tags found
No related merge requests found
(in-package :alexandria) (in-package :alexandria)
(defmacro with-gensyms (names &body forms) (defmacro with-gensyms (names &body forms)
"Binds each variable named by a symbol in NAMES to a unique symbol around "Binds a set of variables to gensyms and evaluates the implicit progn FORMS.
FORMS. Each of NAMES must either be either a symbol, or of the form:
(symbol string-designator) Each element within NAMES is either a symbol SYMBOL or a pair (SYMBOL
STRING-DESIGNATOR). Bare symbols are equivalent to the pair (SYMBOL SYMBOL).
Bare symbols appearing in NAMES are equivalent to: Each pair (SYMBOL STRING-DESIGNATOR) specifies that the variable named by SYMBOL
should be bound to a symbol constructed using GENSYM with the string designated
(symbol symbol) by STRING-DESIGNATOR being its first argument."
The string-designator is used as the argument to GENSYM when constructing the
unique symbol the named variable will be bound to."
`(let ,(mapcar (lambda (name) `(let ,(mapcar (lambda (name)
(multiple-value-bind (symbol string) (multiple-value-bind (symbol string)
(etypecase name (etypecase name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment