Re: [w3c/IndexedDB] `getAll()` with both key and value (or index key and primary key) (#206)

For both of the above comments (naming, structure) I was heavily influenced by ECMAScript's [Map.prototype.entries()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries), which was designed to play well with the (at the time) newly introduced destructuring syntax i.e.: `for (const [k, v] of map.entries()) { console.log(k, v); }`

... and if I recall correctly, this was before JS supported destructuring of objects, i.e. `for (const {k, v} of ...) ...`

Revisiting the proposed API to improve ergonomics is fine! Consistency with JS should be a factor, but not foolish consistency.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/206#issuecomment-2400427274
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/IndexedDB/issues/206/2400427274@github.com>

Received on Tuesday, 8 October 2024 17:23:04 UTC