Spliterator update

Gernot Neppert mcnepp02 at googlemail.com
Thu Dec 27 03:42:06 PST 2012


Am 26.12.2012 23:55, schrieb Brian Goetz:
> After some offline discussions with Doug, we agreed that the 
> getNaturalSplits method can be eliminated completely (rather than 
> replaced with an isSplittable as suggested), and instead renaming 
> split() as trySplit() which would be allowed to return null if the 
> data source was not splittable.  This eliminates the need to spec (and 
> check) interactions between isSplittable and subsequent calls to 
> split.  This has been committed to lambda repo.
>

Please, could we have a more sensible name than 'Spliterator'? It's not 
even an Iterator anymore, so why retain this ugly contrived word?

I suggest to use a simple, self-explanatory term such as 'SplitResult'.









More information about the lambda-libs-spec-observers mailing list