emacs-devel
[Top][All Lists]
Advanced

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

Re: master 431b098: * lisp/emacs-lisp/pcase.el (let): Reimplement as a p


From: Stefan Monnier
Subject: Re: master 431b098: * lisp/emacs-lisp/pcase.el (let): Reimplement as a pcase macro
Date: Sat, 06 Feb 2021 23:14:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Does this mean (info "(elisp) pcase Macro") has to be updated, e.g. to
> document (let ...) alongside (rx ...) as another "built-in" pattern, or
> can we still pretend (let ...) is a "core" pattern for documentation
> purposes?

It's indeed not a "core" pattern any more, but just like with
specialforms-vs-macros, the difference between core patterns and built-in
patterns is just an internal implementation detail, and the way I read
the Texinfo doc, I don't see such a distinction: `rx` is (oddly) placed
together with `and` and `or`, which are both core patterns.

BTW, regarding the `grok/pcase` example, maybe the doc should make it
more clear that this example is a contrived piece of code intended to
combine as many of `pcase`s features as possible, and doesn't intend to
encourage using such style (which I personally find horrendous ;-).


        Stefan




reply via email to

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