Modules Question

Mark S. Miller erights at google.com
Tue Dec 28 09:09:25 PST 2010


On Tue, Dec 28, 2010 at 8:06 AM, David Herman <dherman at mozilla.com> wrote:

> We would probably make it a contextual keyword so you could still use it in
> non-expression contexts (e.g., to the right of '.' and left of ':' in object
> literals), but unless we played some clever tricks, which I'm not sure would
> be worth it, using it as an identifier would be a syntax error. Harmony will
> be opt-in, though, so this won't cause existing code to break unless the
> author explicitly changes the language; at which point they would get an
> early error and have the opportunity to rename the identifiers.
>

Nit: All identifiers including all keywords can already be used after a '.'
or before a ':' in object literals.




>
> Dave
>
> On Dec 28, 2010, at 7:34 AM, Kevin Smith wrote:
>
> > In the modules strawman, "module" is a keyword, right?  Will code that
> uses "module" as an identifier most likely cause a syntax error?
> >
> > Thanks!
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss at mozilla.org
> > https://mail.mozilla.org/listinfo/es-discuss
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20101228/ee3af967/attachment.html>


More information about the es-discuss mailing list