hg: lambda/lambda/jdk: - remove Spliterator.iterator(), see Streams.iteratorFrom for equivalent
Paul Benedict
pbenedict at apache.org
Tue Jan 22 15:29:18 PST 2013
Regarding trySplit/tryAdvance, methods that start with "try" indicate they
throw an exception upon failing to split or advance. Brian, but you did
indicate at least the first can return null, right? So why not just remove
"try" and name them split()/advance()?
I think this pattern makes sense:
tryABC -> returns element or throws an exception
ABC -> returns element or null
Paul
More information about the lambda-libs-spec-observers
mailing list