unofficial mirror of emacs-tangents@gnu.org
 help / color / mirror / Atom feed
From: "Per Starbäck" <per.starback@gmail.com>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: "emacs-tangents@gnu.org" <emacs-tangents@gnu.org>
Subject: Re: Why is `nreverse' called `nreverse'?
Date: Mon, 30 Oct 2023 07:32:48 +0100	[thread overview]
Message-ID: <CADkQgvsofxi4JkiN9k0+4aBOCR6BmwiFUcFZSdvWsgF6fLnW7w@mail.gmail.com> (raw)
In-Reply-To: <87cyww6457.fsf@mbork.pl>

The N- prefix for destructive functions is indeed present in Common
Lisp, but it goes further back than that. It is so in Maclisp, which
both Common Lisp and GNU Emacs Lisp have taken a lot from.
(If it also existed in lisps prior to Maclisp I don't know.) Pitman's
"The Revised Maclisp Manual" doesn't explain the N-. I guess it may
have come from NCONC.

Den mån 30 okt. 2023 kl 07:01 skrev Marcin Borkowski <mbork@mbork.pl>:
>
> Hi all,
>
> I know that the "n-" prefix means that it is destructive.  But why "n-"?
> I also know that this comes from Common Lisp, but still -- why the
> letter "n-"?
>
> TIA,
>
> --
> Marcin Borkowski
> http://mbork.pl
>
> ---
> via emacs-tangents mailing list (https://lists.gnu.org/mailman/listinfo/emacs-tangents)

---
via emacs-tangents mailing list (https://lists.gnu.org/mailman/listinfo/emacs-tangents)

  reply	other threads:[~2023-10-30  6:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-30  6:00 Why is `nreverse' called `nreverse'? Marcin Borkowski
2023-10-30  6:32 ` Per Starbäck [this message]
2023-10-30  7:08   ` [External] : " Drew Adams
2023-10-31 17:26     ` Marcin Borkowski
2023-10-30  9:17 ` Stephen Berman
2023-10-31 17:25   ` Marcin Borkowski

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=CADkQgvsofxi4JkiN9k0+4aBOCR6BmwiFUcFZSdvWsgF6fLnW7w@mail.gmail.com \
    --to=per.starback@gmail.com \
    --cc=emacs-tangents@gnu.org \
    --cc=mbork@mbork.pl \
    /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).