Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.lang.java.programmer Subject: Re: no more primitive data types in Java (JDK 10+). What do you think? Date: Sat, 21 Apr 2012 01:56:45 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 42 Message-ID: References: <9uc3p7lbqs1e8cdpmakv231vegfi1tf6pg@4ax.com> <19103667.4.1334951684324.JavaMail.geo-discussion-forums@pbrh4> <14999630.1083.1334965557983.JavaMail.geo-discussion-forums@pbbpu2> NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:13731 Lew wrote: (snip, I wrote) >> As I remember, all unicode [sic] letters are allowed. >> There are plenty > As I looked up in the JLS, that's not true. Leading digits are > not permitted. What isn't true? I wrote letters, you wrote digits. Unicode has many of each, but the letters aren't digits and the digits aren't letters. > "An identifier is an unlimited-length sequence of Java letters > and Java digits, the first of which must be a Java letter." > > The JLS trumps your memory. and there are a lot more than 52 Java letters. >> that could be confusing to readers. Maybe there aren't any that >> look like roman digits, though. There are many that look like, >> but aren't the same character as, roman alphabet letters. > But those characters are not used to represent integers, > so are not germane to this conversation. True, but it could be confusing. Well, we already have the confusion between 0 and O, but most are used to that by now. Now, name a variable \u039f and see how confusing it can be. > The question at hand was the potential legitimization of > glyphs that represent integers to be used as class names that > inherit from other classes. Those glyphs are not currently > allowed to be leading characters of identifiers, so unless > that changes, rossum's construct will never be legal. I don't know of a visual representation for all the legal Java letters, but yes they should be disjoint from the digits that can be used in numeric constants. -- glen