groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shil Sinha <shil.si...@gmail.com>
Subject Re: [PROPOSAL]new operator ?=
Date Tue, 22 Nov 2016 17:51:10 GMT
>
> while I agree that ||= is more like what ruby offers we have the problem,
> that for Groovy a||b always will be evaluated as boolean.
> In fact first we apply groovy truth to a and if that is not true, we do
> the same for b and if that is not true we return false, otherwise true.
> Which means a = a||b would not be equal to a ||= b if that is supposed to
> be the same as proposed for ?=.


-1 for ||= for this reason.

On Tue, Nov 22, 2016 at 12:02 PM, Jochen Theodorou <blackdrag@gmx.org>
wrote:

> hmm... actually you might be right there... sorry
>
> On 22.11.2016 17:46, S├ębastien Le Callonnec wrote:
>
>> Hi,
>>
>> On 2016-11-22 16:28:25, Jochen Theodorou wrote:
>>
>>> you can unsusbscribe from the incubator list, we are not in incubator
>>> anymore
>>>
>>
>> Fair enough.  I was under the impression the dev list was an alias of
>> the incubator list created when the project graduated, but I was
>> obviously mistaken.
>>
>> Thanks,
>> S├ębastien.
>>
>>

Mime
View raw message