Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion I never realized the funny difference between nil and () before.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ankur  
View profile  
 More options Nov 3 2011, 1:12 am
Newsgroups: comp.lang.lisp
From: Ankur <an...@lipidity.com>
Date: Thu, 03 Nov 2011 05:12:21 GMT
Local: Thurs, Nov 3 2011 1:12 am
Subject: Re: I never realized the funny difference between nil and () before.
* fortunatus <daniel.elia...@excite.com>

> I find the basic concept a little odd in itself:

> CL-USER> (symbolp 'nil)
> T                       <-- no sweat
> CL-USER> (symbolp nil)
> T                       <-- kind of freaky...

[1]> (symbolp ':hi)
T
[2]> (symbolp :hi)
T

> CL-USER> (symbolp '( ))
> T                       <-- this freaks me out!!
> CL-USER> (symbolp ( ))
> T

Why? () is the same as NIL, isn't it?

> CL-USER> (symbolp '( nil ))
> NIL                     <-- finally back to normalcy - whew

(listp '(nil)) => T

It's a list with one element.

> A list is not a symbol but the empty list is a symbol?!!  The nothing-
> value is a symbol?  That freaks me out!

It's defined that way, isn't it? What's freaky about it?

--
Ankur


 
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.