Regex Point Lambdafication Patch
brian.goetz at oracle.com
Tue Mar 12 18:55:21 PDT 2013
> 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