unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* A protest against pcase, pcase-let, pcase-let*
@ 2015-03-31 18:00 Alan Mackenzie
  2015-03-31 18:29 ` John Wiegley
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alan Mackenzie @ 2015-03-31 18:00 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

Can we please have a moratorium on the use of pcase, etc.?  Their use is
gradually proliferating through Emacs, yet they are not documented.

OK, maybe pcase itself has a page in the elisp manual, but this page is
very difficult to understand, certainly for me.  I have attempted quite
a lot of times to make sense of it, and failed.

There are two possibilities here: (i) the page is difficult because
pcase is itself difficult.  In this case we should stop using pcase and
systematically remove it from Emacs source.  (ii) The page is difficult
because it is not well written.  In this case it should be improved.
Personally, I think (ii) is more likely to be true than (i).

pcase-let and pcase-let* are totally absent from the elisp manual.
Their doc strings say nothing more than "Like `let' but where you can
use `pcase' patterns for bindings.", without giving any clue as to what
"`pcase' patterns" are, or what the syntax and semantics of their
"use" of them for bindings look like.

Recently, jit-lock.el was changed to include a pcase-let and a
pcase-let*.  The pertinent code is, to me, completely obscure.  As these
forms encroach on an ever increasing portion of Emacs, the part of Emacs
in which I can usefully hack diminishes correspondingly.  I suspect I am
not alone here.

As an aside, I suspect that edebug will not be useful in (possibly
large) uses of these forms, given that they are implemented as macros
rather than special forms.

Could we have a moratorium on further use of these three forms until the
above issues have been resolved?

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-04-18  1:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31 18:00 A protest against pcase, pcase-let, pcase-let* Alan Mackenzie
2015-03-31 18:29 ` John Wiegley
2015-04-18  1:47   ` Ted Zlatanov
2015-03-31 19:25 ` Dmitry Gutov
2015-04-01  7:46   ` Daniel Colascione
2015-04-01  9:59 ` Phillip Lord
2015-04-01 12:04   ` Nic Ferrier
2015-04-01 12:16     ` Dmitry Gutov
2015-04-01 13:53     ` Stefan Monnier
2015-04-02  7:19   ` Richard Stallman

Code repositories for project(s) associated with this public inbox

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

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