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
 
Barry Fishman  
View profile  
 More options Nov 3 2011, 11:40 am
Newsgroups: comp.lang.lisp
From: Barry Fishman <barry_fish...@acm.org>
Date: Thu, 03 Nov 2011 11:40:36 -0400
Local: Thurs, Nov 3 2011 11:40 am
Subject: Re: I never realized the funny difference between nil and () before.

On 2011-11-03 01:46:37 EDT, Kaz Kylheku wrote:

> (QUOTE X) and X is the same thing for any X which evaluates to itself!

I don't think so.  They evaluate to the same thing.  This is an
important distinction when writing macros:

 (non-eval-eq (a b)
   `(eq ',a ',b))

 (non-eval-eq (quote nil) nil)
 ==> nil
 (non-eval-eq () nil)
 ==> t

--
Barry Fishman


 
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.