Jump to content
Sign in to follow this  
Rollo62

Spring4D TPair removed

Recommended Posts

Hi there,

 

I checked the latest Spring4D master, and it seems that the TPair<K,V> was removed from Spring.Collections.pas

  TPair<TKey, TValue> = packed record
    Key: TKey;
    Value: TValue;
    constructor Create(const key: TKey; const value: TValue);
  end;

I know this was redundant in System.Generics.Collections.pas,  but now I have to include this unit to get access to TPair.

 

From the philosophy of S4D I understood that Spring.Collections should be able to replace the System.Generics.Collections in the long run completely,

so I wonder why this TPair was removed then, its used in many places.

That means I need to keep a reference to both units now, if I need this.

 

Does this really make sense, why was it removed, and why not for example moved, separated into another Spring unit ?

 

 

 

Edited by Rollo62

Share this post


Link to post

Ok, thanks.

So I thought the new released master is a newer one, and included all from the development branch.

Then I better stay with the development branch.

 

 

Edited by Rollo62

Share this post


Link to post

Oooh yes, maybe its too late and hot right now 🙂

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×