- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 25 Apr 2017 00:09:07 +0000
- To: public-houdini-archive@w3.org
Sigh, new example of an Array-like in Typed OM (that I'm currently in the middle of speccing, so not visible yet in the spec): CSSMathValue. This replacement for CSSCalcValue represents a calc() as an expression tree, so `calc(1 + 2)` becomes `CSSMathValue("+", 1, 2)`. It exposes `operator` and `arguments` attributes; the latter needs to be an Array-like that is limited to `CSSNumericValue` objects. (Note that this is why we can't even depend on `sequence<>` to typecheck these array-likes at time-of-use; in this case, anything that ever uses a `CSSMathValue` will have to *recursively* typecheck its `arguments` values, because they can form an arbitrarily-deep tree of `CSSMathValue`s that need to all be correct.) -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/239#issuecomment-296855256 using your GitHub account
Received on Tuesday, 25 April 2017 00:09:14 UTC