#208 Collections # 3: Please refactor the setlike methods

v3.2.0
closed
Classes (154)
5
2012-08-14
2007-07-16
No

Looking at the current layout of the collection methods it seems possible to refactor them for most of the collection classes (exception being the "Relation" class) to the classes "Collection" and "OrderedCollection".

This would simplify the layout of many of the collection classes and also allow to document and explain these methods in the realm of the "Collection" class and its immediate subclasses.

The following terms refer to the methods as defined in "kernel\RexxClasses\CoreClasses.orx".

Setlike methods for class "Collection"

Please define the following methods for the "Collection" class.

    single_difference
    single_intersection
    single_subset
    single_union
    single_xor

As a result these methods should be removed from the following classes:

    Directory
    Stem
    Table

Setlike methods for class "OrderedCollection"

Please define the following methods for the "OrderedCollection" class.

    ordered_difference
    ordered_intersection
    ordered_subset
    ordered_union
    ordered_xor

As a result these methods should be removed from the following classes:

    Array
    List
    Queue

Discussion

  • Rick McGuire
    Rick McGuire
    2007-07-19

    Logged In: YES
    user_id=1125291
    Originator: NO

    This RFE has been examined, and has been determined to be inline with
    the goals of the ooRexx language. This is not a commitment that this
    feature will be implemented, but this will remain open until someone in
    the ooRexx community chooses to implement the feature.

    Any committer who wishes to work on this feature should assign the
    feature to themselves when they begin. Any non-committer who wishes to
    work on this should indicate their interest by adding a comment to the
    RFE.

     


Anonymous


Cancel   Add attachments