Are function types a requirement?
Reinier Zwitserloot
reinier at zwitserloot.com
Fri Feb 19 15:04:31 PST 2010
I believe I mentioned that chaining varargs into another varargs is actually
allowed (and, as the same rules apply to the chained method, does not weaken
type safety, unless you mix compilation units compiled by different versions
of java, an act which has always had ample opportunity for uncaught type
errors). If not, that's an omission in putting it down in this thread, it's
always been part of this set of rules.
--Reinier Zwitserloot
On Fri, Feb 19, 2010 at 3:19 AM, Neal Gafter <neal at gafter.com> wrote:
> On Thu, Feb 18, 2010 at 3:56 PM, Reinier Zwitserloot
> <reinier at zwitserloot.com> wrote:
> > 2. While my rules may seem arbitrary when you don't know why they are
> being
> > applied, the enjoy the advantage that 99.99999% of all actual usage of
> > varargs out there already adheres to them; in my experience the only
> thing
> > anyone ever does with varargs params is check them against null
> > occasionally, and other than that loop through them either via .length /
> > array acces, or foreach.
>
> In my experience, it is not uncommon to have one varargs method
> "chain" to another varargs method by passing the array along. I
> suspect your "99.99999%" statistic is inaccurate.
>
More information about the lambda-dev
mailing list