- Original Message -
> From: "Stuart Marks"
> To: "Remi Forax"
> Cc: "core-libs-dev" , "Tagir Valeev"
>
> Sent: Tuesday, February 15, 2022 6:06:54 AM
> Subject: Re: [External] : Sequenced Collections
>> Here is
It's a time-honored tradition in naming bikesheds to pick and choose the
precedents you want to be "consistent" with, and I think that's what's
going on here with your preference for "Ordered" over "Sequenced". But
in an ecosystem as large as Java, you can always find conflicting
precedents to
On the one hand, I am very opposed to using the name ` SequencedCollection
`. In the JVM ecosystem, several widely used libraries are using the term
Seq,
Typical examples are Scala and kotlin's standard libraries, Scala uses
`Seq` as a similar correspondence to a `List`, while Kotlin's `Sequence`
r
How about `OrderedCollection`? The meaning of "order" has been defined in
the Stream API, so I think the 'ordered' may be a better choice.
Stuart Marks 于2022年2月15日周二 14:45写道:
>
>
> On 2/11/22 7:24 PM, Tagir Valeev wrote:
> > Of course, I strongly support this initiative and am happy that my
> pr
On 2/11/22 7:24 PM, Tagir Valeev wrote:
Of course, I strongly support this initiative and am happy that my proposal got some
love and is moving forward. In general, I like the JEP in the way it is. I have only
two slight concerns:
1. I'm not sure that having addition methods (addFirst, addL
rom: *"Tagir Valeev"
*To: *"Stuart Marks"
*Cc: *"Remi Forax" , "core-libs-dev"
*Sent: *Saturday, February 12, 2022 4:24:24 AM
*Subject: *Re: [External] : Sequenced Collections
Wow, I missed that the Sequenced Collections JEP draft w
> From: "Tagir Valeev"
> To: "Stuart Marks"
> Cc: "Remi Forax" , "core-libs-dev"
>
> Sent: Saturday, February 12, 2022 4:24:24 AM
> Subject: Re: [External] : Sequenced Collections
> Wow, I missed that the Sequenced Collectio
Wow, I missed that the Sequenced Collections JEP draft was posted!
Of course, I strongly support this initiative and am happy that my proposal
got some love and is moving forward. In general, I like the JEP in the way
it is. I have only two slight concerns:
1. I'm not sure that having add
- Original Message -
> From: "Stuart Marks"
> To: "Remi Forax"
> Cc: "core-libs-dev"
> Sent: Friday, February 11, 2022 8:25:19 PM
> Subject: Re: [External] : Sequenced Collections
> Hi Rémi,
>
> I see that you're trying
Hi Rémi,
I see that you're trying to reduce the number of interfaces introduced by unifying
things around an existing interface, List. Yes, it's true that List is an ordered
collection. However, your analysis conveniently omits other facts about List that
make it unsuitable as a general "order
I've read the draft of the JEP on sequenced collection, and i think the
proposed design can be improved.
https://bugs.openjdk.java.net/browse/JDK-8280836
I agree with the motivation, there is a need for an API to consider the element
of a list, a sorted set and a linked hash set as an ordered
11 matches
Mail list logo