Re: [web-animations] Readonly interfaces and inheritance: seeking advice

On 7/14/14, 9:42 PM, Tab Atkins Jr. wrote:
> If it helps, all I want here is a way to easily cluster attributes
> together.  My case would work just as well if all the stringifiers
> were just attributes on the interface, but for convenience and
> idiom-matching, they're in a sub-object.  I could also just give it a
> type of "object" and describe its value in prose, but I like using a
> dictionary because expressing it in IDL is easier and clearer than in
> prose, and it gives me type-checking for free.

Note that you can sort of hack your way to victory here in the short 
term by defining it as "object" and then in your getter invoking the 
"convert a dictionary to an object" algorithm and returning it.  Except 
you want to cache the result in your case, I suspect, which brings us 
back 'round to the thing Cameron was talking about.

-Boris

Received on Tuesday, 15 July 2014 02:23:32 UTC