all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Josh <josh@foxtail.org>
To: Leo Liu <sdl.web@gmail.com>
Cc: 16567@debbugs.gnu.org, Helmut Eller <eller.helmut@gmail.com>
Subject: bug#16567: 24.3.50; pcase should signal an error if no case matches
Date: Tue, 9 Sep 2014 22:32:19 -0700	[thread overview]
Message-ID: <CANdFEAF4qQ_YSbAcCf-_Kx7nA1u0AzW1rNdJYrA4UQ6-ywH2BA@mail.gmail.com> (raw)
In-Reply-To: <m34mwgxk4d.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

On Tue, Sep 9, 2014 at 7:52 PM, Leo Liu <sdl.web@gmail.com> wrote:

> On 2014-09-09 22:26 -0400, Stefan Monnier wrote:
> > I suggested `pcase-exhaustive'.
> > You suggested `xcase', which I don't like for namespace reasons.
>
> Would `pcasex' be acceptable? I used xcase because I cannot come up with
> a good enough short name, and a long name for such a fundamental macro
> can be annoying.
>

How is the special case of erroring upon failure to match a "fundamental
macro"?
If this needs to exist then Stefan's suggestion of `pcase-exhaustive' or
some other
descriptive name seems like the way to go, but just appending "x" for the
sake of
brevity seems like a bad idea.  Clarity is more important.

[-- Attachment #2: Type: text/html, Size: 1148 bytes --]

  reply	other threads:[~2014-09-10  5:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27  9:22 bug#16567: 24.3.50; pcase should signal an error if no case matches Helmut Eller
2014-01-27 10:27 ` Daimrod
2014-01-27 11:56   ` Helmut Eller
2014-01-27 12:23     ` Daimrod
2014-09-08 18:27 ` Leo Liu
2014-09-08 19:19 ` Stefan Monnier
2014-09-08 20:58   ` Helmut Eller
2014-09-09  0:41     ` Stefan Monnier
2014-09-10  0:02       ` Leo Liu
2014-09-10  2:26         ` Stefan Monnier
2014-09-10  2:52           ` Leo Liu
2014-09-10  5:32             ` Josh [this message]
2014-09-10  6:18               ` Helmut Eller
2014-09-10 13:17             ` Stefan Monnier
2014-09-10 14:28               ` Helmut Eller
2014-09-10 17:26                 ` Stefan Monnier
2014-09-10 14:33               ` Leo Liu
2014-09-10 16:54               ` Glenn Morris
2014-09-10 17:54                 ` Stefan Monnier
2014-09-12  2:35                   ` Leo Liu
2014-09-12 17:15                     ` Stefan Monnier
2014-09-13  0:29                       ` Leo Liu
2014-09-13  3:10                         ` Stefan Monnier
2014-09-13  4:57                           ` Leo Liu
2014-09-13 15:01                             ` Stefan Monnier
2014-09-13 17:25                               ` Leo Liu
2014-09-10 17:39               ` Richard Stallman

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=CANdFEAF4qQ_YSbAcCf-_Kx7nA1u0AzW1rNdJYrA4UQ6-ywH2BA@mail.gmail.com \
    --to=josh@foxtail.org \
    --cc=16567@debbugs.gnu.org \
    --cc=eller.helmut@gmail.com \
    --cc=sdl.web@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.