+1
 
but... if it's allowed and not late, I would like to share my thoughts...:
 
Generally, I like the idea of the elvis assignment! But - as someone earlier noted - I would prefere the "more verbose" assignment - if possible - like
 
it ?:= 'bar'
 
The reason for this is, I think if you would read this like the above one:
 
if it is true ? assign nothing : else assign 'bar'
 
In the other case...
 
it ?= 'bar'
 
... I'm not quite sure...
 
Just my 2'ct
 
Regards,
Susi.
 
Gesendet: Mittwoch, 23. November 2016 um 16:59 Uhr
Von: "Daniel Sun" <realbluesun@hotmail.com>
An: users@groovy.incubator.apache.org
Betreff: [VOTE] new operator ?=
Hi all,

If the new operator ?= (e.g. a ?= 'foo' is equivalent of a = a ?:
'foo') were to be added to Groovy programming language, do you like it?
(Yes: +1; No: -1; Not bad: 0)

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/VOTE-new-operator-tp5736931.html
Sent from the Groovy Users mailing list archive at Nabble.com.