From: ja...@unlambda.com (James A. Crippen)
Date: 19 Jun 2002 22:33:51 -0800
Local: Thurs, Jun 20 2002 2:33 am
Subject: Re: PART ONE: Lisp & Education: Re: Norvig's latest paper on Lisp
Ed L Cashin <ecas...@uga.edu> writes:
> Maybe his _ANSI Common Lisp_ is what you're looking for. I can't helpAlthough I've never read PG's _ANSI Common Lisp_ I've heard so many
> mentioning that I recently picked up a used copy of Steele's _Common
> Lisp the Language_, 2nd edition, and it's a reference that has helped
> my beginning lisp programming take off.
good things about it that I never hesitate to recommend it, which goes
against my not recommending books I've not read personally.
I just learned Lisp straight from CLtL1 and CLtL2. I started with the
Then I heard about KMP's HyperSpec, which was around the time it first
I thought about getting the official ANSI spec, and bought it in
> The Hyperspec is great for reference, but it's online documentation --I keep hoping that maybe someday someone will inspire GLS enough to
> sometimes I prefer a book, and it's sometimes a bit sparse for this
> beginner. CLTL2 gives me enough meat (examples, explanation, etc.)
> for me to thoroughly understand things.
write a CLtL3. Or that some adventureous soul will take on the task
of updating it themselves (since the TeX sources are publically
Even further, I keep hoping that maybe someday that someone will be
The other option is to update the TeX sources to the draft version of
> Good luck. I'm happy so far. Some people diss the "loop" macro, butThe only complaint people really have about the LOOP macro is that
> I've been delighted by it. This kind of thing is a real treat for me
> (it was ugly as sin when I did it in Java):
even though what you had was as ugly as sin in Java, what you end up
with in Lisp is *still* ugly.
JONL's suggestion (and others have made the same) is that parentheses
> (loop for c in player-cardsbecomes something like
> sum (card-blackjack-value c) into n
> count (is-ace c) into n-aces
> finally (return (if (and (> n-aces 0) (< n 12))
> (+ n 10)
(loop (for c in player-cards)
There are other variations as well, of course. I'd like to see all
(loop :for c :in player-cards
This would at least obviate the need for more parens, like Lisp
(BTW, I removed the two extra parens you had in your original example.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.