Re: [PROPOSAL]new operator ?=

2016-11-24 Thread Konstantin Boudnik
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, > Danie

Re: [PROPOSAL]new operator ?=

2016-11-24 Thread Guillaume Laforge
It's on purpose that it should be close to the Elvis operator :-) On Thu, Nov 24, 2016 at 9:33 PM, Konstantin Boudnik 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 ope