TSortedDictionary and other enhanced Generics

TSortedDictionary and other enhanced Generics

I looked around finding a similar generic as the .NET SortedDictionary. There is a rather old open source area https://github.com/ghquant/delphi-coll. But of cause I would prefer to use a well maintained standard library being part of the Delphi core shipping. Are there any plans in that direction?

Comments

  1. David Millington
    Thank you for that clarification. I think I will give Spring4D now a try. Was always hesitating as it still supports back to D2010. Expect(ed) that generics will not have all the needed support and e.g. Intrinsic Helpers not used at all.

    ReplyDelete
  2. Günther Schoch Intrinsic helpers are overhyped. As long as there can be only one helper for a type and helpers stop working when you have type redeclarations (ever tried using the TStringHelper for TCaption, TFilename or any other string type?) I don't find them overly useful. For the overall architecture helpers/extension methods for interfaces/generic types would be hundred times more useful than writing i.ToString instead of IntToStr(i). And at times they can be even dangerous when people use them to mutate the value because they forget they are working with a value type.
    As for Delphi 2010 support - there are new features coming in 1.2 already that only work from XE up (and tbh I will be more than happy when we officially throw away support for that version)

    ReplyDelete
  3. Stefan Glienke
    Thanx for the details. TCaption ... yes we are aware
    http://qc.embarcadero.com/wc/qcmain.aspx?d=112450
    2013 we opened that issue. As well inheritance would actually be a must for the intrinsic helpers. Since XE3 we run our own copy of the whole intrinsic helper code (really bad but the only way).
    I full agree on the helpers for Interfaces and Generics are a must for modern languages.
    >1.2 from XE up
    As I remember the generics were really unstable until XE3. We had lot of internal compiler issues for large projects. Will give Spring4D a try!

    ReplyDelete

Post a Comment