StreamSupport -> Streams?

Joe Bowbeer joe.bowbeer at gmail.com
Thu Jun 20 14:34:35 PDT 2013


I think the name should be indicative of what it names.  If in the future
some publicly useful methods are added (plausible?), then create Streams
and add the methods there.  The Streams-like names (with 's) should be
reserved for publicly useful methods, which is why we created StreamSupport
in the first place.


On Thu, Jun 20, 2013 at 2:17 PM, Brian Goetz <brian.goetz at oracle.com> wrote:

> Two objections:
>
> 1.  This is not an SPI!  The SPI would be the currently-hidden XxxOp APIs.
>
> 2.  The package is already so small (and getting like 20% smaller when we
> kill CloseableStream and DelegatingStream) as to be silly to have another
> package with one file.
>
> Sam's point, which is a good one, is that it was confusing to mix two
> audiences together in one file, but now that there's only one audience for
> this set of static methods, we can pick a less crappy name.  (Even though
> the name choice was slightly deliberately crappy, but the need to create
> contrast is much lower now that the API is so much smaller than it was
> then.)
>
>
> On 6/20/2013 5:13 PM, Remi Forax wrote:
>
>> On 06/20/2013 11:10 PM, Sam Pullara wrote:
>>
>>> I'm just not happy with StreamSupport. There are perfectly reasonable
>>> methods in there for library writers. I'm sure the javadocs can make
>>> it clear what their purpose is and redirect people.
>>>
>>> Sam
>>>
>>
>> I don't care if the class name is Streams or StreamSupport but I think
>> it should be moved from package java.util.stream to java.util.stream.spi.
>>
>> Rémi
>>
>>
>>> On Jun 20, 2013, at 2:08 PM, Tim Peierls <tim at peierls.net
>>> <mailto:tim at peierls.net>> wrote:
>>>
>>>  On Thu, Jun 20, 2013 at 4:56 PM, Brian Goetz <brian.goetz at oracle.com
>>>> <mailto:brian.goetz at oracle.com**>> wrote:
>>>>
>>>>     Streams was already scheduled to be GC'ed, which would have left
>>>>     only StreamSupport.
>>>>
>>>>     The incremental suggestion from Sam was "Now that Streams is
>>>>     being GCed, can't we then rename StreamSupport to Streams, where
>>>>     this stuff used to live anyway?"
>>>>
>>>>
>>>> It might subtly push people who would otherwise happily ignore
>>>> StreamSupport into thinking that these Streams methods were for
>>>> general use.
>>>>
>>>> --tim
>>>>
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130620/96b9a89c/attachment-0001.html 


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