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:
This might be appropriate as an optional setting, via flag.
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:
Iterators:
Removals:
This might be appropriate as an optional setting, via flag.