unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#72754: 31.0.50; Add a pcase-pattern-let?
@ 2024-08-22  2:02 Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-08-22 13:38 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-08-22  2:02 UTC (permalink / raw)
  To: 72754; +Cc: Stefan Monnier


Hello,

wouldn't it be a significant improvement and maybe a low hanging fruit
to add a macro allowing to add local pattern definitions?  I.e., like
`macrolet' by for pcase patterns?

It could help to make larger patterns better readable, by factoring out
long or repeatedly appearing patterns and giving them meaningful names.
Without cluttering the global namespace.

Maybe an implementation could be similar and as simple as that of
`rx-let'?


TIA,

Michael.







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

end of thread, other threads:[~2024-08-24  5:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22  2:02 bug#72754: 31.0.50; Add a pcase-pattern-let? Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-22 13:38 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-24  5:56   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors

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