bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64290: “named-let” doc bug?


From: Eli Zaretskii
Subject: bug#64290: “named-let” doc bug?
Date: Mon, 26 Jun 2023 18:43:03 +0300

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Shynur Xie <one.last.kiss@outlook.com>,  64290@debbugs.gnu.org
> Date: Mon, 26 Jun 2023 09:59:13 -0400
> 
> >> The following code seems fine semantically and grammatically:
> >> 
> >>     ;; -*- lexical-binding: nil; -*-
> >>     (named-let f ((n 1))
> >>       (dotimes (i n)
> >>         (f 0)))
> >> 
> >> But it throws error.
> >> 
> >> Perhaps we should clarify that “‘named-let’ works as expected only
> >> when ‘lexical-binding’ is enabled” in relevant doc?
> >
> > Stefan, any comments?
> 
> That or adding a check in `named-let` and raise an error when applicable.

I went with the former on the release branch.  I think raising an
error is only appropriate for the master branch, if we even think it's
a good idea.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]