groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milles, Eric (TR Tech, Content & Ops)" <>
Subject Re: About adding `emptyArray` DGSM to arrays
Date Wed, 28 Nov 2018 15:38:29 GMT
How would you return an empty multi-dimensional array?  Your original proposal would cover
that, correct?  String[][].emptyArray()

Under your new proposal, String.emptryArray() -> String[], is this it String[].emptyArray()
-> String[][]?

I do prefer "String.emptryArray()" 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
Subject: Re: About adding `emptyArray` DGSM to arrays

`String.emptyArray()` may be better


Daniel Sun
Apache Groovy committer
Twitter: @daniel_sun

Sent from:

View raw message