Re: About adding `emptyArray` DGSM to arrays

2018-11-28 Thread MG
ing[] empty = Arrays.emptyArray() def empty = Arrays.emptyArray() *From:* Milles, Eric (TR Tech, Content & Ops) *Sent:* Wednesday, November 28, 2018 9:38:29 AM *To:* dev@groovy.apache.org *Subject:* Re: About adding `emptyArray` DGS

Re: About adding `emptyArray` DGSM to arrays

2018-11-28 Thread Daniel.Sun
> String[].emptyArray() -> String[][]? true > Arrays.emptyArray() or `Arrays.emptyArray(String[])`, but they look a bit verbose... Cheers, Daniel.Sun - Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com

Re: About adding `emptyArray` DGSM to arrays

2018-11-28 Thread Milles, Eric (TR Tech, Content & Ops)
Arrays.emptyArray() def empty = Arrays.emptyArray() From: Milles, Eric (TR Tech, Content & Ops) Sent: Wednesday, November 28, 2018 9:38:29 AM To: dev@groovy.apache.org Subject: Re: About adding `emptyArray` DGSM to arrays How would you return an empty multi-dimensio

Re: About adding `emptyArray` DGSM to arrays

2018-11-28 Thread Milles, Eric (TR Tech, Content & Ops)
at first glance. One-dimensional will be the most common use case by far. From: Daniel.Sun Sent: Wednesday, November 28, 2018 6:28 AM To: d...@groovy.incubator.apache.org Subject: Re: About adding `emptyArray` DGSM to arrays `String.emptyArray()` may be better Ch

Re: About adding `emptyArray` DGSM to arrays

2018-11-28 Thread Daniel.Sun
`String.emptyArray()` may be better Cheers, Daniel.Sun - Daniel Sun Apache Groovy committer Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html