- From: Simon Pieters <simonp@opera.com>
- Date: Thu, 26 Mar 2015 11:50:37 +0100
- To: "public-fx@w3.org" <public-fx@w3.org>, "Domenic Denicola" <d@domenic.me>
- Cc: "Boris Zbarsky" <bzbarsky@mit.edu>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Wed, 25 Mar 2015 13:55:04 +0100, Domenic Denicola <d@domenic.me> wrote: > I think a better solution might be a single constructor (no overloads) > plus static factory methods. So something like > > [Constructor(optional DOMPointInit p1, ...)] > interface DOMQuad { > ... > static fromRect(optional DOMRectInit); > static fromQuad(optional DOMQuadInit); > } Thanks. This seems like a better API design and avoids the issues. Particularly when dictionaries are involved. Is Mozilla OK with changing to something like this? Not just for DOMQuad but for the rest as well. -- Simon Pieters Opera Software
Received on Thursday, 26 March 2015 10:51:09 UTC