andre.bargull at udo.edu
Thu May 14 22:39:41 UTC 2015
> On May 14, 2015, at 12:40 PM, Alexander Jones wrote:
> > Ah, thanks for explaining! What about the Temporal Dead Zone of let, or const binding semantics,
> for those of us who are obsessive enough to desire that kind of thing everywhere?
> ES6 specifies that function declarations are allowed in blocks in both strict and nn-strict mode.
> In both cases they are block scoped and have essentially the same semantics (including a TDZ) as a
> let declaration.
There is no TDZ for block-scoped function declarations. Function declarations are basically hoisted
to the top of the block.
More information about the es-discuss