[modules-dev] modules question
Alex.Buckley at Sun.COM
Mon Jul 28 18:56:54 PDT 2008
Brian Frank wrote:
> Is the “module” keyword going to be context sensitive? Or will it
> become illegal to use “module” as an identifier?
The former, which is why I always refer to 'module' as a "restricted
keyword". This will have a formal definition in the JLS, but it's
basically an identifier everywhere except those specific productions
where the grammar allows it to be a keyword.
We believe it is straightforward for a parser to determine whether
'module' is an identifier or a keyword. We found a small exception to
that today, which I have discussed at
More information about the modules-dev