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

Re: lexically scoped functions



> However, I can see some logic in terms of efficiency because a let
> function definition can only be used inside the let-body, so why not
> reference directly using $fn-foo because you must have known that you are
> overriding the foo function anyway.

i'm pretty sure that this was not my reasoning when we decided that
lexically scoped functions were not evaluated.  i don't know what the
reasoning was;  it seems wrong to me now.  in particular, i want to
point out that the efficiency issues are very minor.

this behavior will not be changed in es-0.84; it does require some real
work on the implementation.  my tendency is to support lexically scoped
functions in a later release, but i want more reaction from the list before
we go ahead and change.

paul