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

From: Stefan Monnier <[email-masked]>
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.

        Stefan