all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Keith David Bershatsky <esq@lawlist.com>
Cc: 18837@debbugs.gnu.org
Subject: bug#18837: 25.0.50; `sort` -- modify function to preserve original list.
Date: Sat, 25 Oct 2014 22:44:45 -0400	[thread overview]
Message-ID: <jwvsiiblfe6.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <m2tx2rhnfm.wl%esq@lawlist.com> (Keith David Bershatsky's message of "Sat, 25 Oct 2014 14:03:25 -0700")

> The doc-string for the function `sort` states that `SEQ is modified by
> side effects`; however, it does not state in what way the original
> list gets modified or why such a feature might somehow be useful.

The "usefulness" is to avoid allocating another list in the case where
the unsorted list won't be used later on anyway.


        Stefan





  reply	other threads:[~2014-10-26  2:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-25 21:03 bug#18837: 25.0.50; `sort` -- modify function to preserve original list Keith David Bershatsky
2014-10-26  2:44 ` Stefan Monnier [this message]
2014-10-26  5:04 ` Keith David Bershatsky
2019-09-16  5:30 ` Stefan Kangas

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

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

  git send-email \
    --in-reply-to=jwvsiiblfe6.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18837@debbugs.gnu.org \
    --cc=esq@lawlist.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.