return when desugaring to closures
jaz at bu.edu
Mon Oct 13 11:09:27 PDT 2008
On Mon, Oct 13, 2008 at 12:47 PM, Mark Miller <erights at gmail.com> wrote:
> On Mon, Oct 13, 2008 at 9:13 AM, Jon Zeppieri <jaz at bu.edu> wrote:
>> But then it becomes extremely awkward for the 'let' or 'const' case to
>> use a fresh variable on every iteration. It ties the semantics of
>> 'for' to its initialization clause in a very strange way.
> I think it falls out of the natural desugaring of for to lambda with no
> special cases. The "var" itself causes its own hoisting and joining.
Sorry -- I must be particularly dense today. What desugaring do you
have in mind?
More information about the Es-discuss