From: Ulrich Mueller <ulm@gentoo.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, 73596@debbugs.gnu.org
Subject: bug#73596: 29.4; empty (let) does not signal an error
Date: Sat, 12 Oct 2024 15:54:56 +0200 [thread overview]
Message-ID: <u8qutxw7j@gentoo.org> (raw)
In-Reply-To: <jwvcyk5ignj.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 12 Oct 2024 09:43:53 -0400")
>>>>> On Sat, 12 Oct 2024, Stefan Monnier wrote:
>>> Not sure if the following is an error or the intended behavior.
>>> IIUC empty (let) should signal an error, and it did so in Emacs 27.2.
>>> However, it returns nil now.
> The compiler emits a warning when encountering a `let` without a body,
> which I think is the most important aspect.
> Returning nil (when the user decides to run the code despite the
> warning) seems just as good as signaling an error. Just don't rely on it.
(func-arity 'let) ⇒ (1 . unevalled)
Shouldn't this be updated to return (0 . unevalled) when empty (let)
is allowed?
next prev parent reply other threads:[~2024-10-12 13:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-02 12:54 bug#73596: 29.4; empty (let) does not signal an error Ulrich Mueller
2024-10-12 11:26 ` Eli Zaretskii
2024-10-12 13:43 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-12 13:54 ` Ulrich Mueller [this message]
2024-10-12 14:21 ` Andreas Schwab
2024-10-12 15:40 ` Ulrich Mueller
2024-10-12 15:51 ` Andreas Schwab
2024-10-12 15:57 ` Ulrich Mueller
2024-10-12 16:32 ` Andreas Schwab
2024-10-13 5:04 ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
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=u8qutxw7j@gentoo.org \
--to=ulm@gentoo.org \
--cc=73596@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).