Re: [whatwg] CanvasRenderingContext2D with addPath, currentPath

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.

-Boris

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