[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64290: “named-let” doc bug?
From: |
Stefan Monnier |
Subject: |
bug#64290: “named-let” doc bug? |
Date: |
Mon, 26 Jun 2023 09:59:13 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
>> 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