what is a list designator?

Discussion of Common Lisp
Post Reply
stackman
Posts: 28
Joined: Sat Oct 06, 2012 5:44 am

what is a list designator?

Post by stackman » Sat Dec 01, 2012 11:04 am

Hi,

The hyperdoc for the case macro talks about list designators.
But what is a list designator? Reading the definition in the hyperspec did not help.

I guess I understand what is a string designator: a keyword, a symbol or a string.
But a list designator? The case examples seem to indicate that even a number is a list designator.
I am puzzled.

Goheeca
Posts: 271
Joined: Thu May 10, 2012 12:54 pm
Contact:

Re: what is a list designator?

Post by Goheeca » Sat Dec 01, 2012 11:43 am

In the glossary is written that with a non-nil atom is dealed like with a singleton (a list of one element). Thereunto if you want to use t or otherwise as a normal-clause you must use the singleton.
cl-2dsyntax is my attempt to create a Python-like reader. My mirror of CLHS (and the dark themed version). Temporary mirrors of aferomentioned: CLHS and a dark version.

stackman
Posts: 28
Joined: Sat Oct 06, 2012 5:44 am

Re: what is a list designator?

Post by stackman » Sat Dec 01, 2012 12:39 pm

Thanks, I looked at the section 1.4.1.5 on designators, but the info is indeed in the glossary.

Post Reply