* cl-macs: case with a nil value
@ 2003-08-21 15:52 Glenn Morris
2003-08-21 16:16 ` Jesper Harder
0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2003-08-21 15:52 UTC (permalink / raw)
(case nil
(nil "nil")
(t "t"))
-> "t"
(case nil
((nil) "nil")
(t "t"))
-> "nil"
Does that seem weird to anyone else? Am I misunderstanding the magic
nature of "nil" (it's a list, it's an atom, it slices, it dices, ...)
again?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cl-macs: case with a nil value
2003-08-21 15:52 cl-macs: case with a nil value Glenn Morris
@ 2003-08-21 16:16 ` Jesper Harder
2003-08-21 16:25 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Jesper Harder @ 2003-08-21 16:16 UTC (permalink / raw)
Glenn Morris <gmorris+news@ast.cam.ac.uk> writes:
> (case nil
> (nil "nil")
> (t "t"))
>
> -> "t"
>
> (case nil
> ((nil) "nil")
> (t "t"))
>
> -> "nil"
>
> Does that seem weird to anyone else?
Not to me. It works as advertised in <info://cl/Conditionals>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cl-macs: case with a nil value
2003-08-21 16:16 ` Jesper Harder
@ 2003-08-21 16:25 ` Glenn Morris
0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2003-08-21 16:25 UTC (permalink / raw)
Jesper Harder wrote:
> Not to me. It works as advertised in <info://cl/Conditionals>
Oh foobar...
A thousand apologies for posting without reading the info page.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-21 16:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-21 15:52 cl-macs: case with a nil value Glenn Morris
2003-08-21 16:16 ` Jesper Harder
2003-08-21 16:25 ` Glenn Morris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).