@@ -153,24 +153,24 @@ o inc(), inc(amount), dec(), dec(amount)
153153X replace (especially for null and NaN)
154154X make note that these work, and are special cases
155155o listAttributes() in XML is like array from keys() etc in our data classes
156- _ removeIndex() vs removeValue() vs remove()
157- _ remove() refers to an index (with array) or key (with hash)
158- _ more consistent with other APIs (Java)
159- _ replaceValue[s]() the same, though more on the line
160- _ should we not have remove() and removeIndex()
161- _ and instead always specify? removeKey(), removeIndex(), removeValue()?
162- _ would mean that hash would only have removeKey
163- _ downside: remove() takes whatever get() takes as arg
164- _ with removeValue(), add removeValues() for all values that match?
165- _ also support NaN here
166- _ need to sort out the final version of hash/dict/etc and their names
167- _ JSONObject.has(key) vs XML.hasAttribute(attr) vs HashMap.containsKey()
168- _ and how it should be handled with hash/dict
169- _ right now using hasKey().. in JSONObject
170- _ contains() as default, then containsValue() as the alternate
171- _ instead of containsKey() and containsValue()
172- _ hasAttribute in XML, containsKey in java's Map, hasKey in JSON
173- _ hasChildren() is another precedent
156+ X removeIndex() vs removeValue() vs remove()
157+ X remove() refers to an index (with array) or key (with hash)
158+ X more consistent with other APIs (Java)
159+ X replaceValue[s]() the same, though more on the line
160+ o should we not have remove() and removeIndex()
161+ o and instead always specify? removeKey(), removeIndex(), removeValue()?
162+ o would mean that hash would only have removeKey
163+ o downside: remove() takes whatever get() takes as arg
164+ X with removeValue(), add removeValues() for all values that match?
165+ X also support NaN here
166+ X need to sort out the final version of hash/dict/etc and their names
167+ X JSONObject.has(key) vs XML.hasAttribute(attr) vs HashMap.containsKey()
168+ X and how it should be handled with hash/dict
169+ X right now using hasKey().. in JSONObject
170+ o contains() as default, then containsValue() as the alternate
171+ o instead of containsKey() and containsValue()
172+ X hasAttribute in XML, containsKey in java's Map, hasKey in JSON
173+ X hasChildren() is another precedent
174174o contains() is nice, but containsKey() is weird, often not 'containing'
175175X hasKey/hasValue is best; fewest changes and most descriptive
176176_ not doing print() methods, since alternatives are more descriptive
0 commit comments