Re: formatter
- From: "joswig@xxxxxxxxxxxxxxxxxxxxxxx" <joswig@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 3 Dec 2007 18:42:44 -0800 (PST)
On Dec 4, 2:00 am, "Carl Taylor" <carltay...@xxxxxxx> wrote:
I'm trying to get a grip on <formatter>.
So <format> is a function that can take a control
string, or a function generated by the macro
<formatter>. Said function contains an
(apply #'format (args) ...). So where's the gain
in efficiency? Is it that the function somehow
eliminates <format>'s need to parse the control string
at run time, i.e. moving something messy up to compile
time?
When and how would this be used to advantage?
Maybe with very complex control strings or if
the <format> is embedded in some iterative structure.
But it doesn't seem to be used routinely.
Carl Taylor
FORMATTER allows you to compile the format control
string into code and thus removes the runtime interpretation
aspect of it.
BUT. I can't remember if any CL implementation actually implements
a FORMAT compiler. Last I've looked, most just call FORMAT as usual.
FORMATTER is defined just in case some implementation
wants to provide that functionality.
.
- Follow-Ups:
- Re: formatter
- From: Steven M. Haflich
- Re: formatter
- References:
- formatter
- From: Carl Taylor
- formatter
- Prev by Date: formatter
- Next by Date: Re: formatter
- Previous by thread: formatter
- Next by thread: Re: formatter
- Index(es):
Relevant Pages
|