- From: Joshua Bell <notifications@github.com>
- Date: Tue, 08 Oct 2024 10:23:00 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 8 October 2024 17:23:04 UTC
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