W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2014

Re: [web-animations] AnimationTimeline comments

From: Kristopher Giesing <kris.giesing@gmail.com>
Date: Mon, 19 May 2014 09:48:27 -0700
Message-ID: <CAAhnRF_BSdFZ9-yf2P1piYBrzf1PVY7k2vO44hfF=0arS8KYUg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: "public-fx@w3.org" <public-fx@w3.org>
It would make more sense to me for a method named "get" to return the same
object every time.  In particular, it's desirable to be able to
control/reduce memory allocations in code that is concerned with smooth
animations.

- Kris


On Mon, May 19, 2014 at 8:30 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 5/19/14, 6:52 AM, Erik Dahlström wrote:
>
>> It sounds rather java-like to have a get method for this IMHO. In any
>> case, if the WebIDL is the limitation
>>
>
> Again, the real question is what semantics you want.  The first question
> is: do you want to return a live list or a snapshot?  The second question
> is: do you want to return the same object every time (with presumably some
> explicit update points for the snapshot case) or a new object each time?
>
> Once you decide on the answers to those questions, then we can talk about
> how to express it in IDL.  Fwiw, all four combinations there are in fact
> expressible in IDL.
>
> -Boris
>
>
Received on Monday, 19 May 2014 16:48:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:49 UTC