Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Jochen Theodorou
On 24.01.2017 10:54, Remi Forax wrote: Also note that in Java Integer[] o = { 3 }; and int[] o = { 3 }; both work but Object o = { 3 }; does not compile because the syntax '{' '}' with no explicit array type do inference (and here Object is not an array so the inference fails). Supporti

Re: Array initializer of Java style for Groovy 3

2017-01-24 Thread Guillaume Laforge
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, >> Danie

答复: Array initializer of Java style for Groovy 3

2017-01-24 Thread Daniel Sun
Thanks ?? 发件人: Cédric Champeau [via Groovy]<mailto:ml-node+s329449n5737956...@n5.nabble.com> 发送时间: 2017年1月24日 20:18 收件人: Daniel Sun<mailto:realblue...@hotmail.com> 主题: Re: Array initializer of Java style for Groovy 3 Great work! 2017-01-24 13:12 GMT+01:00 Daniel Sun <[hidden

Re: Array initializer of Java style for Groovy 3

2017-01-24 Thread Cédric Champeau
ithub.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. >

Array initializer of Java style for Groovy 3

2017-01-24 Thread 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.

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Daniel Sun
49.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp5737941p5737953.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Remi Forax
initialization seems to be the right choice ! Rémi > De: "Daniel Sun" > À: d...@groovy.incubator.apache.org > Envoyé: Mardi 24 Janvier 2017 10:42:03 > Objet: Re: About array initializer of Java style for Groovy 3 > +1 > 在 "Guillaume Laforge [via Groovy]&

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Daniel Sun
Java too. This is the initial implementation :) https://github.com/danielsun1106/groovy-parser/commit/96e6c923a4d09d48448f8731a314c918ee6c0e7c Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp57379

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Guillaume Laforge
but it can not >> parse >> `{1, 2, 3}`, which is not supported by Java too. >> >>This is the initial implementation :) >> https://github.com/danielsun1106/groovy-parser/commit/ >> 96e6c923a4d09d48448f8731a314c918ee6c0e7c >> >> >> Cheers,

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Andres Almiray
;> >> >> Cheers, >> Daniel.Sun >> >> >> >> >> -- >> View this message in context: >> http://groovy.329449.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp5737941p5737944.html >> Sent from the Groov

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Daniel Sun
n context: http://groovy.329449.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp5737941p5737944.html Sent from the Groovy Dev mailing list archive at Nabble.com. -- Guillaume Laforge Apache Groovy committer & PMC Vice-President Developer Advocate @ Google Cloud

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Daniel Sun
49.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp5737941p5737944.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.co

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Guillaume Laforge
; >This is the initial implementation :) > https://github.com/danielsun1106/groovy-parser/commit/ > 96e6c923a4d09d48448f8731a314c918ee6c0e7c > > > Cheers, > Daniel.Sun > > > > > -- > View this message in context: http://groovy.329449.n5. > nabble.

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Daniel Sun
-- View this message in context: http://groovy.329449.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp5737941p5737944.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: About array initializer of Java style for Groovy 3

2017-01-24 Thread Andres Almiray
llo(), world() }`, etc. I plan to > add this syntax for Groovy 3 to improve the compatibility between Groovy > and > Java. > >Any thoughts? > > Cheers, > Daniel.Sun > > > > -- > View this message in context: http://groovy.329449.n5. > nabble.com/Abou

About array initializer of Java style for Groovy 3

2017-01-23 Thread Daniel Sun
this message in context: http://groovy.329449.n5.nabble.com/About-array-initializer-of-Java-style-for-Groovy-3-tp5737941.html Sent from the Groovy Dev mailing list archive at Nabble.com.