Module syntax

Kevin Smith zenparsing at gmail.com
Mon Jun 3 19:07:21 PDT 2013


>
> > Bikeshedding:
>
> Well, here comes a fun thread...
>
>
Bikeshedding *is* fun : )

FWIW, I've implemented a parser for curly-free syntax and it does introduce
some minor parsing difficulties on the export side.  If we had lexical
modules, then this:

    export module as ...

could be a valid prefix for an exported module declaration or an export
set.  You basically need more tokens of lookahead to disambiguate on these
contextual keywords.

I'm totally happy with the current syntax, modulo some concern over the
default export syntax which I mentioned upthread.

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130603/de42210f/attachment.html>


More information about the es-discuss mailing list