NetBeans support for proposed small language extensions
John Rose
John.Rose at Sun.COM
Thu Jan 22 03:04:34 PST 2009
On Jan 22, 2009, at 1:14 AM, Rémi Forax wrote:
> In that case, you don't need '#', Dynamic."setcar!"(aCons, aValue)
> is not ambiguous. It will work with all qualified access to field and
> method.
That's what we did in Groovy; it works well there. Java needs to be
a little more formal, I think, and make a clear distinction between
string literals and identifiers.
Restricting XIDs to qualified names is, I think, an unnatural
restriction: It does not follow use cases exactly enough. In
particular, it does not cover the use case I mentioned earlier, of
defining exotic names (class/method/field) in Java, for access in
other modules, where the spellings are formed by rules other than
those governing (non-exotic) Java identifiers.
-- John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20090122/2f3abd08/attachment.html
More information about the mlvm-dev
mailing list