groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject [PROPOSAL]new operator ?=
Date Tue, 22 Nov 2016 14:14:40 GMT
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