W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [matrix][cssom-view] DOMPoint, DOMPointLiteral definitions

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 23 Sep 2013 20:16:14 -0400
Message-ID: <5240D9CE.1080000@mit.edu>
To: www-style@w3.org
On 9/23/13 7:14 PM, Tab Atkins Jr. wrote:
> WebIDL makes it remarkably fiddly to create an interface that should
> be readonly in some circumstances and mutable in others.

That's because those are fundamentally two different "interfaces", when 
you actually think about them.

I mean, say you were implementing this in pure ES.  You'd just return 
two different types of objects for those two cases, probably with 
different prototypes...

-Boris
Received on Tuesday, 24 September 2013 00:16:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC