Re: [w3c/IndexedDB] IDL interface for the intersection of IDBObjectStore and IDBIndex? (#367)

We don't typically use interfaces this way on the web platform. Since the behavior is not actually identical between store and index, it wouldn't be functional inheritance (or each algorithm would have "if this is a store, do X; if it's an index, do Y", which defeats the purpose). 

I understand the appeal when coming from a strongly typed language to have something like IIDBQueryable, but that's just not a pattern that's established for the web. 

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

Received on Friday, 15 October 2021 17:19:02 UTC