On 27 January 2012 23:49, Brendan Eich <bren...@mozilla.org> wrote:
> OTOH, people may think "oh, finally! const!" and use const declarations in
> an early/common script, wanting to see them later on. I still think we could
> say "sorry, script-local" and then "use a module".

Yes, I cannot imagine that this would not break a few existing web pages.

What are you proposing for module bindings then? They would have to be
visible later on for the "use modules" excuse to work. Do they
clash/shadow/overwrite?

And wouldn't it be a bit unfortunate/counter-intuitive to have
different rules for modules and other lexical bindings?

Btw, the modules excuse can likewise be applied in defence of STL:
"sorry, name clash, wrap in a module".

/Andreas
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to