GNU bug report logs - #73596
29.4; empty (let) does not signal an error

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Wed, 2 Oct 2024 12:55:02 UTC

Severity: normal

Tags: wontfix

Found in version 29.4

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Ulrich Mueller <ulm <at> gentoo.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 73596 <at> debbugs.gnu.org
Subject: Re: bug#73596: 29.4; empty (let) does not signal an error
Date: Sat, 12 Oct 2024 15:54:56 +0200
>>>>> 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?




This bug report was last modified 198 days ago.

Previous Next


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