W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2013

Re: [whatwg] CanvasRenderingContext2D with addPath, currentPath

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 03 Nov 2013 01:23:42 -0400
Message-ID: <5275DDDE.5050005@mit.edu>
To: whatwg@lists.whatwg.org
On 11/2/13 11:42 PM, Rik Cabanier wrote:
> Maybe we should revisit this design principle or be less strict. It feels
> unnatural to give access to internal objects.

Who said anything about giving access to internal objects?

The normal way to have such an API is to have a method call, not a 
property getter.  It's normal for method calls to return a new object 
every time, but it's very unexpected to have a property getter do so.

> Isn't this also part of the reason that we now have 3 different interfaces
> for DOMRect and DOMMatrix?

No, it's not.

Received on Sunday, 3 November 2013 05:24:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:13 UTC