GNU bug report logs - #73853
Should and-let* become a synonym for when-let*?

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Thu, 17 Oct 2024 16:31:02 UTC

Severity: wishlist

Found in version 31.0.50

Full log


Message #192 received at 73853 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 73853 <at> debbugs.gnu.org, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: Re: bug#73853: Should and-let* become a synonym for when-let*?
Date: Sun, 19 Jan 2025 06:08:37 +0100
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> That goes back to my earlier question: what makes `and/when/if-let` so
> different from `ignore-errors` and so many other constructs.

What makes `pcase's let/app/pred/guard different from and/when/if-let?
There is likewise lots of redundancy, and the subtle differences are
hard to grasp and remember for a lot of people.  Would you remove the
two least used ones?

I also still remember your reaction when I had used a let pattern to do
destructuring with combined testing and you meant that it was not
designed for it and would be weird.  Because you associated a semantic
with it that was not necessarily implied for me.

So isn't your personal taste in this case here relevant too, for what
you want to do?


Michael.




This bug report was last modified 141 days ago.

Previous Next


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