[alexandria-devel] concatenate-symbol
Luís Oliveira
luismbo at gmail.com
Mon Nov 20 19:56:23 UTC 2006
On 11/20/06, Nikodemus Siivola <nikodemus at random-state.net> wrote:
> (concatenate-symbol pkg "FOO-" (incf *my-counter* i) "-DING-" i "-" tail)
> would be preferable to
> (format-symbol pkg "FOO-~D-DING-~D-~A" (incf *my-counter* i) i tail)
FWIW, in my limited experience, I prefer concatenate-symbol (though
I've grown fond of SBCL's name symbolicate :)) because I can more
easily cater to the so-called "modern" lisps:
(symbolicate '#:foo- (incf *my-counter* i) '#:-ding- i "-" tail)
With format-symbol, the control string would only add noise.
--
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
More information about the alexandria-devel
mailing list