Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35575

Re: Operators

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Operators
Date 2016-09-08 19:24 -0400
Organization Aioe.org NNTP Server
Message-ID <nqsrvj$15u5$1@gioia.aioe.org> (permalink)
References <operators-20160908014132@ram.dialup.fu-berlin.de>

Show all headers | View raw


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

Arne

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


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