bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16567: 24.3.50; pcase should signal an error if no case matches


From: Stefan Monnier
Subject: bug#16567: 24.3.50; pcase should signal an error if no case matches
Date: Wed, 10 Sep 2014 09:17:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> Would `pcasex' be acceptable?

It's kind of ugly, and I'm not sure what the "x" stands for.

> 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.

`pcase-e TAB' should expand to `pcase-exhaustive', so the length is not
that troublesome, unless you're concerned about line-length and
indentation (in which case the length of `pcase-exhaustive' may indeed
occasionally force you to use an extra line).

I'm open to other suggestions, and `pcasex' is not unacceptable, so
I think we're closing in.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]