Very cool! On Sat, Dec 3, 2016 at 10:01 AM, Marcin Erdmann <marcin.erdm...@proxerd.pl> wrote:
> Awesome, thanks for implementing it Daniel. > > On Sat, Dec 3, 2016 at 7:59 AM, Daniel Sun <realblue...@hotmail.com> > wrote: > >> Hi all, >> >> The new parser "Parrot" supports Elvis Assignment(i.e. ?=) now. >> Here >> are some examples: >> >> def a = 2 >> a ?= 1 >> assert a == 2 >> >> a = null >> a ?= 1 >> assert a == 1 >> >> a = null >> a ?= a ?= 1 >> assert a == 1 >> >> P.S. supports static compilation as well. >> >> Cheers, >> Daniel.Sun >> >> >> >> >> -- >> View this message in context: http://groovy.329449.n5.nabble >> .com/Elvis-Assignment-for-Groovy-3-tp5737108.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>