Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: no more primitive data types in Java (JDK 10+). What do you think? Date: Tue, 24 Apr 2012 15:06:02 -0700 (PDT) Organization: http://groups.google.com Lines: 24 Message-ID: <30298985.914.1335305162450.JavaMail.geo-discussion-forums@pbqv7> References: <13i3p7dn5bqlmu9t1l83faour5sq016pu0@4ax.com> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1335305164 12762 127.0.0.1 (24 Apr 2012 22:06:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Apr 2012 22:06:04 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 2369 Xref: csiph.com comp.lang.java.programmer:13873 BGB wrote: > so user has to remember to type "i=3D(int)j;" or they might cut themselve= s=20 > on the sharp edges of numeric precision, and meanwhile "i=3D(int)p;"=20 > doesn't even come close to working (but, to be fair, there is little in= =20 > the language design to say what the value "should" be, if it were=20 > in-fact [sic] to work). There is, too, such a statement in the language spec - the value should be = a compiler error. The notion of 'what the value "should" be' is not mentioned because, natura= lly enough, it's not a valid construct. If it were to work, it wouldn't be = Java any more. It's such a fundamentally opposed construct to the Java etho= s that such a thing cannot happen in Java, ever. It's part of the foundatio= nal type-safe approach that is the heart of Java. So put aside such self-co= ntradictory absurdities as, "what that which is utterly forbidden and anath= ema to the language philosophy would look like if it were allowed." or such... --=20 Lew