GNU bug report logs - #72754
31.0.50; Add a pcase-pattern-let?

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Thu, 22 Aug 2024 02:03:01 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 72754 <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: bug#72754: 31.0.50; Add a pcase-pattern-let?
Date: Thu, 22 Aug 2024 04:02:05 +0200
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.






This bug report was last modified 295 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.