Regex Point Lambdafication Patch
Brian Goetz
brian.goetz at oracle.com
Tue Mar 12 18:55:21 PDT 2013
> Brian,
> I wonder if having Spliterator.split() returning null as a default
> implementation is a good idea.
> It's far easier to write a Spliterator than an Iterator so either we
> provide a method that takes a Spliterator that only works serially and
> transform it to a parallel one or the default implementation of
> Spliterator.split() should do something more meaningful than 'return null'.
Yes, I think "return null" is too "easy" a default -- it encourages
people to write bad spliterators without realizing the tradeoffs they're
making. Perhaps not having a default at all would be better.
More information about the lambda-dev
mailing list