Path: csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Operators Date: Tue, 13 Sep 2016 22:15:09 -0400 Organization: Aioe.org NNTP Server Lines: 45 Message-ID: References: NNTP-Posting-Host: 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35598 On 9/13/2016 8:47 PM, Lew wrote: > On Thursday, September 8, 2016 at 4:24:51 PM UTC-7, Arne Vajhøj wrote: >> On 9/7/2016 8:45 PM, Stefan Ram wrote: >>> »3.12 Operators >>> >>> 38 tokens, formed from ASCII characters, are the >>> operators. >>> >>> Operator: one of >>> >>> = > < ! ~ ? : -> >>> >>> == >= <= != && || ++ -- >>> >>> + - * / & | ^ % << >> >>> >>> >>> += -= *= /= &= |= ^= %= <<= >>= >>>=« >>> >>> JLS8 >>> >>> This is the complete sections 3.12. >>> >>> Does this mean that »a?b:c« contains /two/ >>> operators, but »(int)3.2«, »(3)« and »f(x)« >>> do not contain an operator? >> >> I think that common terminology among Java developers >> would be that: >> >> ?: is a single operator >> cast is not an operator >> parenthesis are not operators >> method call is not an operator > > Whatever is common or rare among programmers is irrelevant. What is relevant is > https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.12 Java developers frequently have to communicate with people that know development but not Java, so I disagree. Understanding common terminology is essential for effective communication with the development process. Arne