allen at wirfs-brock.com
Thu May 14 22:51:12 UTC 2015
On May 14, 2015, at 3:39 PM, André Bargull wrote:
>> 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.
Ah right, I misspoke about on that point. block level function declarations are indeed hoisted to the top of the block.
More information about the es-discuss