A (perhaps) useful thing to keep in mind.
Allen Wirfs-Brock
allen at wirfs-brock.com
Wed Nov 23 10:26:58 PST 2011
On Nov 22, 2011, at 8:21 AM, Jorge wrote:
> It seems that all of these are equally valid ways to say "function ƒ () { ... }" :
>
> function ƒ () { ... }
> function ƒ () {{ ... }}
Actually these can have slightly different static semantics in ES.next
function f(arg) {
let arg = 42; //early error duplicate declaration of 'arg
}
function f(arg) {{
let arg = 42; //block level declaration of 'arg' shadows formal parameter
}}
Allen
More information about the es-discuss
mailing list