all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Barry OReilly <gundaetiapo@gmail.com>
Cc: 14892@debbugs.gnu.org
Subject: bug#14892: [PATCH] Enhance Elisp compare functions (< <= > >=) to take var args
Date: Fri, 06 Sep 2013 22:28:07 -0400	[thread overview]
Message-ID: <jwvfvth4bc1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFM41H1Sn6Y8JQwYxt4KNZXkw9PtPDForjNUrZragSkYQNbGVg@mail.gmail.com> (Barry OReilly's message of "Fri, 6 Sep 2013 19:02:14 -0400")

> Here is a patch to implement this. The tests in the patch pass.

Do you have some performance numbers?

> I didn't do /=. If I implement /= with Fsort, then it won't behave
> quite like in other Lisps.

That kind of compatibility is not very important.

> In SBCL:
>   (/= 1 2 3 'foo) signals error
>   (/= 1 2 1 'foo) evaluates to NIL

> To not get an error for the latter, I would want to use a hash map or
> tree map.  Are either of these ready-available to Emacs C code?

We have hash-tables implemented in C, yes.


        Stefan





  reply	other threads:[~2013-09-07  2:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17 15:58 bug#14892: Enhance Elisp compare functions (< <= > >=) to take var args Barry OReilly
2013-09-06 23:02 ` bug#14892: [PATCH] " Barry OReilly
2013-09-07  2:28   ` Stefan Monnier [this message]
2013-09-09 22:53     ` Barry OReilly
2013-09-10 13:20       ` Stefan Monnier
2013-09-10 14:54         ` Barry OReilly
2013-09-10 20:16           ` Stefan Monnier
2013-09-10 23:35             ` Barry OReilly
2013-09-11  1:08               ` Stefan Monnier
2013-09-11  5:10                 ` Barry OReilly
2013-09-11 12:33                   ` Stefan Monnier

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=jwvfvth4bc1.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=14892@debbugs.gnu.org \
    --cc=gundaetiapo@gmail.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.