Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35611
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Operators |
| Date | 2016-09-14 20:23 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nrcpm3$j36$1@gioia.aioe.org> (permalink) |
| References | <operators-20160908014132@ram.dialup.fu-berlin.de> <nqsrvj$15u5$1@gioia.aioe.org> <e57ce88e-78d3-4a8f-b278-6b95b3f20f1b@googlegroups.com> <cnehtbtdnt0s9hurm4poi9bni372mpp9d3@4ax.com> |
On 9/13/2016 10:51 PM, Roedy Green wrote: > On Tue, 13 Sep 2016 17:47:57 -0700 (PDT), Lew <lewbloch@gmail.com> > wrote: >> https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.12 > > it says ? and : are both operators independently, contrary to net > convention. Obviously oracle is the authority. In 3.12 they authoritatively says 2. In 15.25 they authoritatively says 1. :-) Maybe they are not authoritatively the authority. :-) Or maybe there is a good explanation. Chapter 3 is about lexical structure. ?: is definitely two lexical elements or tokens. So: "38 tokens, formed from ASCII characters, are the operators." should possible be read: "38 tokens [in the lexical scan], formed from ASCII characters, are [used to create] the [37] operators" In general one should be very careful about interpreting specs like this. But in this case it actually makes 3.12: - consistent with 15.25 - consistent with common terminology Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-08 19:24 -0400
Re: Operators Roedy Green <inquiry@mindprod.com> - 2016-09-12 22:13 -0700
Re: Operators Lew <lewbloch@gmail.com> - 2016-09-13 17:47 -0700
Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-13 22:15 -0400
Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-13 22:18 -0400
Re: Operators Roedy Green <inquiry@mindprod.com> - 2016-09-13 19:51 -0700
Re: Operators Arne Vajhøj <arne@vajhoej.dk> - 2016-09-14 20:23 -0400
csiph-web