groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Boudnik <...@apache.org>
Subject Re: [PROPOSAL]new operator ?=
Date Thu, 24 Nov 2016 20:33:24 GMT
It's painfully close to the elvis operator, isn't it?

On Tue, Nov 22, 2016 at 07:14AM, Daniel Sun wrote:
> Hi all,
> 
>      Marcin Erdmann proposed the new operator ?=, e.g.  a ?= "foo" is
> equivalent of a = a ?: "foo". 
> 
>      I like his idea, what do you think about it?
> 
> Cheers,
> Daniel.Sun
> 
> 
> 
> --
> View this message in context: http://groovy.329449.n5.nabble.com/PROPOSAL-new-operator-tp5736886.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.

Mime
View raw message