Loose end: ints(), longs()

Tim Peierls tim at peierls.net
Tue May 28 11:16:59 PDT 2013

On Tue, May 28, 2013 at 2:05 PM, Brian Goetz <brian.goetz at oracle.com> wrote:

> There seems to be broad support behind renaming the existing xxxs()
> methods.  Though there now are almost as many proposals as there are EG
> members :(
> as{Ints,Longs,Boxed}
> as{Ints,Longs,Objs} // most consistent with map/flatMap naming
> as{Ints,Longs} but keep boxed()
> to{Int,Long}Stream but keep boxed()

The variety isn't necessarily a sign of strong disagreement. I don't think
any of these are unworkable, but I do have a preference for the last one --
toIntStream(), toLongStream(), and boxed() -- because those names seem less
prone to misinterpretation than in the other cases.


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