Subject: Re: please review my complete working program
From: (Rob Warnock)
Date: Thu, 05 Mar 2009 21:28:02 -0600
Newsgroups: comp.lang.lisp
Message-ID: <>
david <> wrote:
| thanks for your teachings. i see i will be
| spending some time experimenting with format.

Hint: In its full-blown glory, FORMAT is even more complex than LOOP,
a complete separate sub-language, embedded in a single string! Thus
you should approach it in baby steps, so as not to get overwhelmed.

Once you get your footing with simple stuff, you can start exploring
the wonders of control flow (backing up, branching, & looping), layout
control, and pretty-printer ops.[1]

That said, it does help to learn very early the full generality of
the FORMAT "embedded directive" syntax, the thing introduced by the
tilde ("~") and terminated by a format control character, discussed
in the 8th & 9th paragraphs of CLHS "22.3 Formatted Output", since
almost every non-trivial directive uses some combination of the
available optional modifiers.


[1] <>,
    while *quite* amusing, isn't actually a particularly complex FORMAT
    if you take out the artsy line-break hidings and clean it up a little.

Rob Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607