what is a list designator?

Discussion of Common Lisp

what is a list designator?

Postby 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.
stackman
 
Posts: 28
Joined: Sat Oct 06, 2012 5:44 am

Re: what is a list designator?

Postby 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).
User avatar
Goheeca
 
Posts: 197
Joined: Thu May 10, 2012 12:54 pm

Re: what is a list designator?

Postby 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.
stackman
 
Posts: 28
Joined: Sat Oct 06, 2012 5:44 am


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 8 guests

cron