- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Mon, 14 Jul 2014 22:23:02 -0400
- To: "Tab Atkins Jr." <jackalmage@gmail.com>, Cameron McCormack <cam@mcc.id.au>
- CC: Domenic Denicola <domenic@domenicdenicola.com>, Brian Birtles <bbirtles@mozilla.com>, "public-fx@w3.org" <public-fx@w3.org>
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