unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: What does the coding system nil mean?
Date: Tue, 27 Jan 2004 15:44:13 +0100	[thread overview]
Message-ID: <ubrop1mf6.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: m31xpmlosp.fsf@defun.localdomain

Jesper Harder <harder@myrealbox.com> writes:

> Eli Zaretskii <eliz@elta.co.il> writes:
>
[...]
>> IMHO, it's no more odd than this:
>>
>>    M-: (listp nil) RET => t
>
> I would find it a lot more odd if (listp ()) did not return t -- nil
> is the empty list, after all.

Well ...

(and (eq nil '())
     (symbolp '())
     (listp '())
     (atom '())
     (not '()))

[Not to mention (car nil) => nil.]

It's funny that nil never seems to stop being fodder for an
argument ... 

In Emacs Lisp nil/'() is some sort of a Trickster deity in the
pantheon of data types.

Personally I like this a lot and I find it very convenient. YMMV, of
course. Yet, IMO this “overloading” just emphasizes the fact that
lists are a prominent data type.

Hmm … actually C with its NULL/0 isn't so much different here.

    Oliver
-- 
8 Pluviôse an 212 de la Révolution
Liberté, Egalité, Fraternité!

      parent reply	other threads:[~2004-01-27 14:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-24 22:13 What does the coding system nil mean? Jesper Harder
2004-01-25  6:10 ` Eli Zaretskii
     [not found] ` <mailman.1298.1075010993.928.help-gnu-emacs@gnu.org>
2004-01-25 21:09   ` Jesper Harder
2004-01-26  6:08     ` Eli Zaretskii
     [not found]     ` <mailman.1343.1075097239.928.help-gnu-emacs@gnu.org>
2004-01-26 15:07       ` Stefan Monnier
2004-01-26 17:28         ` Eli Zaretskii
2004-01-27 15:22         ` Oliver Scholz
2004-01-27 16:33           ` Stefan Monnier
2004-01-26 15:20       ` Jesper Harder
2004-01-26 17:26         ` Eli Zaretskii
2004-01-27 14:44         ` Oliver Scholz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ubrop1mf6.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).