repeated parameter names and default values

Allen Wirfs-Brock allen at wirfs-brock.com
Fri Sep 28 08:48:20 PDT 2012


On Sep 28, 2012, at 7:58 AM, John Lenz wrote:

> 
> 
> On Thu, Sep 27, 2012 at 10:12 AM, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> Another:
> 
> The notes from last week's meeting said WRT function parameter bindings:
> 
> Conclusion/Resolution
> - `var` bindings and are in scope within the function
> - cannot use `let` to shadow a parameter
> 
> In any scope, or just the top scope of the function?  Restricting "let" in this fashion seems odd. Does let otherwise have any shadowing restrictions?  Not that I expect this to be problematic except when translating code from other languages (either by hand or by a cross compiler). 

Those specific conclusions were WRT function arguments and top level function declarations.

Allen




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120928/17f8a0d1/attachment.html>


More information about the es-discuss mailing list