Skip to content

Collection Conformance #2999

@jjatie

Description

@jjatie

DataSets are collections of DataEntries, and ChartData are collections of DataSets. Currently we have non-standard methods to access members of the collections (e.g. entryForIndex).

Due to the requirement of Objective-C compatibility, we are unable to do the proper thing and adopt Collection (and a few related protocols) in these classes. While we are able to implement specific functions to make them feel more "Swift-y", users will lose on out expected features that come for free with Collection conformance (such as map, reduce, filter).

Are there any thoughts with how to proceed in making collections feel more Swift like?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions