youtube image
From YouTube: Readonly Collections for JS

Description

Presented at TC39 Oct 2019. https://github.com/tc39/proposal-readonly-collections
Achieved stage 1 status.
Slides:
https://github.com/tc39/agendas/blob/master/2019/10.readonly-collections-as-recorded.pdf

Currently, JavaScript collections are unconditionally mutable. We believe many use cases could benefit from separating the ability to query a collection from the ability to mutate it. We’ve seen repeated calls for such support. To minimize the cognitive load of new API, we propose the addition of only three new methods to all collections and the addition of new collection classes whose APIs are only a subset of the existing collection abstractions.