GNU bug report logs -
#13126
24.3.50; (WISH) Document pcase in Info manual
Previous Next
Reported by: Jambunathan K <kjambunathan <at> gmail.com>
Date: Sun, 9 Dec 2012 09:27:01 UTC
Severity: minor
Merged with 12752
Found in version 24.3.50
Fixed in version 24.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 13126 <at> debbugs.gnu.org (full text, mbox):
>>> Thanks. `pcase' seemed a good replacement for `case'.
>> While it's not a plug-in replacement, it provides a superset of the
>> features of case, yes.
> pcase also reminds me of CL's case. Btw, you know in what version of
> Emacs did pcase made it's appearance.
Probably 24.1. You'd have to check the NEWS file.
> Provide a BNF and document TERMINALS before NON-TERMINALS. (Currently it
> seems other way round).
I don't think a BNF spec has its place there. It's fine for the
docstring, but the point of this lispref subsection is to give an
introduction to `pcase'.
> May be replace the example snippets with a /simple/ and /cohesive/
> example.
Do you think snippet 1 is not sufficiently simple?
> I found Snippet 2 "too abstract" and leaves a lot to the
> imagination of the reader.
For those readers not familiar enough with functional programming,
I could tweak it, maybe replacing `call' and `fn' cases with `(neg ,x)
and `(if ,t ,e1 ,e2)? Would that help?
The problem I see with your snippets is that they're too long.
Stefan
This bug report was last modified 12 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.