Re: Java identifiers (was: languages with full unicode support)
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 12:50:18 +0100
David Hopwood wrote:
[quotes reordered]
Note that I am not defending in any way the complexity of this
definition; there's
clearly no excuse for it (or for the "ignorable" documentation bug). The
language
spec should have been defined directly in terms of the Unicode General
Categories,
and then the API in terms of the language spec. They way it is done now is
completely backwards.
Noted and agreed. The rest of this is just nit-picking.
By the way, I admire your patience and dedication in following through all the
hoops...
And no, I don't think Java's approach -- where there /is no defined set
of
allowed identifier characters/ -- makes any sense at all :-(
# A "Java letter" is a character for which the method
# Character.isJavaIdentifierStart(int) returns true. A "Java
letter-or-digit"
# is a character for which the method Character.isJavaIdentifierPart(int)
# returns true.
Yes, but I don't agree that that amounts to a normative definition. If
Character.isJavaIdentifierPart(int), and more pivotally, Character.getType(),
/has/ a normative specification at all (which I doubt) then it is clearly
intended to vary over time to reflect changes to the Unicode standard. There
would be little sense in the JLS punting to the definition (?!) of that method
if change were not anticipated (and it's not as if the JLS author's are prone
to taking short-cuts ;-)
But Character is only "/based on/ the Unicode Standard, version 4.0" (my
emphasis) -- which hardly (to my mind) constitutes either a specification (how
does one write a conforming recogniser for Java identifiers in another language
?), nor a guarantee of stability in future releases of the platform (even up
to dot-dot releases).
-- chris
.
- Follow-Ups:
- Re: Java identifiers
- From: David Hopwood
- Re: Java identifiers
- Prev by Date: Re: Networking of JVMs
- Next by Date: Re: What in Hell are Sun playing at with learning JNI ?
- Previous by thread: [ANN] Java User Group Cologne: Meet a Champion 04.07.2006 Dr. Heinz M. Kabutz, SUN Java Champion, Südafrika
- Next by thread: Re: Java identifiers
- Index(es):
Relevant Pages
|
|