3 ms·
IIFEs are cumbersome and non-intuitive. Better languages have block scope or a "let" statement instead.
by ufo 14y ago
IIFEs are cumbersome and non-intuitive. Better languages have block scope or a "let" statement instead.
- TazeTSchnitzel 14y ago`let` is drafted for ECMAScript 6.
- georgemcbay 14y ago...and ECMAScript 4 had block scope. Language design by committee is seriously flawed and until a feature is shipping in all the major browsers it isn't real.
- TazeTSchnitzel 14y agoECMAScript 4 was cancelled.
- georgemcbay 14y agoThat was exactly my point.
- grannyg00se 14y agoJavascript [does/will]* have a "let" statement. *depending on which version of ECMAscript is being used.