groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Laforge <glafo...@gmail.com>
Subject Re: [PROPOSAL]new operator ?=
Date Thu, 24 Nov 2016 20:45:42 GMT
It's on purpose that it should be close to the Elvis operator :-)

On Thu, Nov 24, 2016 at 9:33 PM, Konstantin Boudnik <cos@apache.org> wrote:

> 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.
>



-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

Mime
View raw message