groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Shaposhnik <ro...@shaposhnik.org>
Subject Re: [PROPOSAL]new operator ?=
Date Tue, 22 Nov 2016 16:39:12 GMT
On Tue, Nov 22, 2016 at 5:14 PM, Daniel Sun <realbluesun@hotmail.com> 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?

Like it! I could definitely see myself using it.

Thanks,
Roman.

Mime
View raw message