[Kaffe] ease of use patch.
Alex Blewitt
Alex.Blewitt at ioshq.com
Wed Feb 24 06:15:52 PST 1999
> It makes the java grammar more complex.
>
> It would require extensive use of lexical states to allow keywords in
> every location where it's unambiguous.
>
> In general, language designers make these compromises, which don't harm
> the programmer much, in order to make compilers easier to write and debug,
> and faster in operation.
As an add-on to this argument, the Java Language Specification dictates
that you can't use any keywords (including int, private, while etc.) as
variable names. So in the hope of having a portable tool, following the
JLS not only makes the compiler easier to write, but also follows the
spirit of the specification.
Alex.
/***************************************************************\
|* Alex Blewitt * Hug, and the world hugs with you *|
|* Alex.Blewitt at iee.org * *|
|* Mobile: + 44 966 158647 * Spread a little happiness *|
\***************************************************************/
More information about the kaffe
mailing list