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

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

bug#64290: closed (“named-let” doc bug?)


From: GNU bug Tracking System
Subject: bug#64290: closed (“named-let” doc bug?)
Date: Mon, 26 Jun 2023 15:44:01 +0000

Your message dated Mon, 26 Jun 2023 18:43:03 +0300
with message-id <83pm5iw7p4.fsf@gnu.org>
and subject line Re: bug#64290: “named-let” doc bug?
has caused the debbugs.gnu.org bug report #64290,
regarding “named-let” doc bug?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
64290: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64290
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: “named-let” doc bug? Date: Sun, 25 Jun 2023 23:16:41 +0000
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?

--
shynur


--- End Message ---
--- Begin Message --- Subject: Re: 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.


--- End Message ---

reply via email to

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