unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: "Alfred M. Szmidt" <ams@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Allow underscore in non-binding clauses of `if-let*` and friends
Date: Wed, 13 Nov 2024 12:03:22 +0100	[thread overview]
Message-ID: <861pzf2y6d.fsf@fastmail.fm> (raw)
In-Reply-To: <E1tAv6r-0005wQ-F9@fencepost.gnu.org> (Alfred M. Szmidt's message of "Tue, 12 Nov 2024 12:55:25 -0500")

On Tue, Nov 12 2024, Alfred M. Szmidt wrote:
>    ```
>    (if-let* ((_ (foo (some-computation)))
> 	     (_ (bar (some-other-computation)))
> 	     (baz (y-or-n-p "Hi? ")))
>        (message "yes"))
>    ```
>
> Isn't this already allowed?  LET* allows for it, or is this another of
> those this is not really LET* but something else situation?

Yes, it's allowed, it's just that in Emacs 29 (which I'm using), it's
flagged by flycheck. That has been fixed in Emacs 30, though.

-- 
Joost Kremers
Life has its moments



  reply	other threads:[~2024-11-13 11:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 13:36 Allow underscore in non-binding clauses of `if-let*` and friends Joost Kremers
2024-11-12 17:55 ` Alfred M. Szmidt
2024-11-13 11:03   ` Joost Kremers [this message]
2024-11-12 20:13 ` Jens Schmidt
2024-11-12 20:23   ` Joost Kremers
2024-11-13 10:22 ` Sean Whitton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861pzf2y6d.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=ams@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).