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
when key found in JSON, Delete() will make a new slice and return it with new content.
when key not found in JSON, Delete() will return the original slice.
For API user, it is very hard to diff these two cases and make following actions if we want to apply new actions on new slice but not impact original content.
If API user make a new slice and copy result of Delete() in it to apply new actions. That means we will take two alloc/copy if the key found in JSON, one by API user and one by Delete().
The text was updated successfully, but these errors were encountered:
when key found in JSON, Delete() will make a new slice and return it with new content.
when key not found in JSON, Delete() will return the original slice.
For API user, it is very hard to diff these two cases and make following actions if we want to apply new actions on new slice but not impact original content.
If API user make a new slice and copy result of Delete() in it to apply new actions. That means we will take two alloc/copy if the key found in JSON, one by API user and one by Delete().
The text was updated successfully, but these errors were encountered: