You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symmetry can be restored by treating arrays similar to collections: create a new array containing the old values as well as the new values.
remkop
changed the title
Should Collections be instantiated unconditionally like array fields?
Array field values should be preserved (like Collections) and new values appended
Mar 31, 2017
Currently array fields (Params or option) are always initialized to a new array instance, regardless of what the current value is.
Collections however are only instantiated when they are initially null, otherwise values are added to the original collection instance.
This asymmetry is undesirable.
Note: we may want to support map-like options like
-Da=b -Dx=y
. Behaviour for map-like containers should be consistent with arrays and collections.The text was updated successfully, but these errors were encountered: