groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Laforge <glafo...@gmail.com>
Subject Re: Array initializer of Java style for Groovy 3
Date Tue, 24 Jan 2017 12:21:16 GMT
Nice!

On Tue, Jan 24, 2017 at 1:18 PM, C├ędric Champeau <cedric.champeau@gmail.com>
wrote:

> Great work!
>
> 2017-01-24 13:12 GMT+01:00 Daniel Sun <realbluesun@hotmail.com>:
>
>> Hi all,
>>
>>       The new parser Parrot support array initializer of Java style, e.g.
>> new int[] {1, 2, 3}, new int[][]{new int[]{1, 1.plus(1)}, new int[]
>> {2.plus(1), 4}}, new String[] {'hello', 'world'}
>>
>>       More examples can be found at
>> https://github.com/danielsun1106/groovy-parser/blob/master/
>> src/test/resources/core/Array_01x.groovy
>>
>>        If you want to give it a try, follow the steps to launch groovy
>> console to run your code:
>>
>> $ git clone https://github.com/danielsun1106/groovy-parser.git
>> $ cd groovy-parser
>> $ ./gradlew groovyConsole
>>
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context: http://groovy.329449.n5.nabble
>> .com/Array-initializer-of-Java-style-for-Groovy-3-tp5737955.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>

Mime
View raw message