groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <pa...@asert.com.au>
Subject Re: Compound assignment for logic operators
Date Wed, 11 Apr 2018 09:47:08 GMT
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, Apr 11, 2018 at 2:58 AM, Jochen Theodorou <blackdrag@gmx.org> wrote:

>
>
> 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 operators?
>>
>
> I don't really remember... did we maybe add it for groovypp?
>
> bye Jochen
>

Mime
View raw message