A couple of questions regarding let, hoisting and block scope

2011-03-21 Thread Claus Reinke
I was looking forward to a Javascript with block scope at last, but on looking through the proposals, I have some questions: 1. hoisting vs recursive function definitions Hoisting isn't nice in general, and from the no use before declaration in [1], it seems that let bindings won't be

Re: A couple of questions regarding let, hoisting and block scope

2011-03-21 Thread David Herman
Hoisting isn't nice in general, and from the no use beforedeclaration in [1], it seems that let bindings won't be hoisted, not even to their enclosing block. That page is not yet complete. There's plenty more work to do on it, but we probably won't be able to find much time to do