Skip to content

Implement add/remove/iterate methods for array properties #13

Description

@Knetic

Array properties are generally better-off by being tightly controlled by their parent data model. Addition, removal, searching, and iteration of properties should all be implemented as methods of the parent data model, so that the array itself is not directly modifiable by outside methods (to manage constraints).

Additions:

  • Dynamic languages should do type checking and null enforcement.
  • Constraint checks for min/max items

Iterators:

  • Java should use iterators. C# should use enumerators. Go should just return the slice.

Removals:

  • By value only.

This might be appropriate as an optional setting, via flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions