achricht Von: Jochen Theodorou
Datum: 11.04.18 14:37 (GMT+01:00) An:
dev@groovy.apache.org Betreff: Re: Compound assignment for logic operators
Am 11.04.2018 um 13:56 schrieb mg:
> Wait - since when does Java have logical or and and assignment
> operators... ?-)
it does not? ups...
Maybe ||= was active in Groovy at some point ?Or you used |= and Groovy truth
made it work ?||-)
Ursprüngliche Nachricht Von: Jochen Theodorou
Datum: 11.04.18 14:37 (GMT+01:00) An:
dev@groovy.apache.org Betreff: Re: Compound assignment for logic operators
Am 11.04.2018 um
Am 11.04.2018 um 13:56 schrieb mg:
Wait - since when does Java have logical or and and assignment
operators... ?-)
it does not? ups... yes... |= and not ||=
Strange... I thought I used it before in Java or Groovy... I had a very
specific code in mind for that actually...
Wait - since when does Java have logical or and and assignment operators... ?-)
Ursprüngliche Nachricht Von: Jochen Theodorou
Datum: 11.04.18 12:58 (GMT+01:00) An:
dev@groovy.apache.org Betreff: Re: Compound assignment for logic operators
Am 11.04.2018 um 12:44 schrieb mg
Am 11.04.2018 um 12:44 schrieb mg:
Hi Paul,
do you have a use case for these operators in mind ? I guess some sort
of "an error has occurred" boolean flag aggregation could profit from that:
In Java I use that all the time (sometimes to the dismay of my
colleagues), so far I had no need fo
error occurred.. ")}
Cheers,mg
Ursprüngliche Nachricht Von: Paul King
Datum: 11.04.18 11:47 (GMT+01:00) An: dev@groovy.apache.org Betreff: Re:
Compound assignment for logic operators
It seems older than that. I guess we decided to follow java and C rather than
Ruby.I
It seems older than that. I guess we decided to follow java and C rather
than Ruby.
I suspect we wouldn't want to make an override-able operator for logical
and/or but I see no harm in having the short-hand itself.
Anyway, we can look at it if there is sufficient interest.
Cheers, Paul.
On Wed, A
Am 10.04.2018 um 09:00 schrieb Paul King:
Hi Everyone,
I noticed that the '&&=' and '||=' operators (LOGICAL_AND_EQUAL and
LOGICAL_OR_EQUAL) are partially supported in a few parts of the codebase
but not at the grammar level. Does anyone remember any previous
discussion about those operato