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: Tue, 24 Sep 2013 16:24:38 -0400
Message-ID: <5241F506.7070605@mit.edu>
To: Rik Cabanier <cabanier@gmail.com>
CC: www-style list <www-style@w3.org>
On 9/24/13 4:22 PM, Rik Cabanier wrote:
> So a function that takes a DOMPointLiteral can be passed a DOMPoint.

That's automatic.  DOMPointLiteral is a structural type.  A function 
taking DOMPointLiteral can be passed any object, including a DOMPoint.

> Dictionary members are always optional.

Sure, possibly with default values.

Though the method implementation could in fact throw if they're not passed.

> So, it's Ok for DOMPointLiteral to not contain members

OK from the point of view of IDL.  The callee can refuse such literals.

Received on Tuesday, 24 September 2013 20:25:07 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC