[css-houdini-drafts] [css-typed-om] Replace CSSNumericArray with just a FrozenArray (#947)

tabatkins has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] Replace CSSNumericArray with just a FrozenArray ==
I created `CSSNumericArray` originally as an array-like so I could ensure that when an author inserted a value into the array, I could typecheck it.

Subsequently, we realized that, for good reasons, CSSNumericValue objects need to not change their CSS type after construction; this means `CSSUnitValue.unit` became readonly, and so did `CSSMathSum.values`, etc., which are `CSSNumericArray`s

This means there's no longer any need to typecheck insertions into the `CSSNumericArray`, because you can't insert things into them anymore! As such, we don't need the special array-like class at all; we can just use a `readonly FrozenArray<CSSNumericValue>` and be done with it.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/947 using your GitHub account

Received on Tuesday, 17 September 2019 08:48:43 UTC