Closures and let blocks

Brendan Eich brendan at
Thu Jan 3 11:26:34 PST 2008

On Jan 3, 2008, at 10:29 AM, Lars T Hansen wrote:

> On Jan 3, 2008 7:01 PM, Brendan Eich <brendan at> wrote:
>> On Jan 3, 2008, at 9:58 AM, Igor Bukanov wrote:
>>> On 03/01/2008, Brendan Eich <brendan at> wrote:
>>>>> let function f() { };
>>>> I missed that if so -- did you see this in the wiki, a trac ticket,
>>>> or another doc?
>>> I have not seen this, I just assumed for some reasons that syntax  
>>> for
>>> let blocks and declarations is shared.
>> Completely reasonable, both for implementations and users, IMHO.
>> Lars, what do you think?
> I doubt this simplifies the life for implementations even the tiniest
> bit,

Didn't say that it would -- reasonable != simplify. Practical and  
reference implementations have lots of common sub-parsers that can be  
hooked together cheaply, was my point.

> so let's talk use cases...
> I'm fairly sure that in 20 years of Scheme programming I've not felt
> the need to use letrec as a nested expression

The context here is let blocks, not let expressions.


More information about the Es4-discuss mailing list