unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: What does the coding system nil mean?
Date: Mon, 26 Jan 2004 15:07:48 GMT	[thread overview]
Message-ID: <jwvr7xm92e8.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca> (raw)
In-Reply-To: mailman.1343.1075097239.928.help-gnu-emacs@gnu.org

> It's a coding system in the sense that every primitive that accepts a
> coding system symbol also accepts nil.

Try (coding-system-doc-string nil) ;-)

>> Though, I think it's a bit odd for a predicate called
>> `coding-system-p' to return t for an object that is _not_ in fact a
>> coding system.

> IMHO, it's no more odd than this:

>    M-: (listp nil) RET => t

Given the fact that the only empty list is nil, I don't find it too odd.
As a former Schemer, I'd agree that it would make sense to introduce a real
empty list constant and stop overloading the meaning of nil, but it's
unlikely to happen.
For coding-systems, you can use `no-conversion' in place of nil, and there
was no historical reason to overload the meaning of nil here.


        Stefan

  parent reply	other threads:[~2004-01-26 15:07 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 [this message]
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

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=jwvr7xm92e8.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    /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).