tc39 / proposal-policy-map-set

A TC39 proposal for Maps and Sets with cache replacement policies like LRU and LFU.
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

Constructor names: LRUMap vs. Map.LRU #5

Open Jack-Works opened 2 years ago

Jack-Works commented 2 years ago

I suggest naming it like:

Map.FIFO Map.LRU

js-choi commented 2 years ago

Remind me—is there any precedent yet for adding constructor properties to constructors in the core language? I would like to match precedents set by the rest of the language.

ljharb commented 2 years ago

No, but we discussed it wrt resizable array buffers, and the precedent was for Arrays, not everything. We could set a new precedent here, and i think we should.