W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: [WebIDL] toJSON

From: Kyle Huey <me@kylehuey.com>
Date: Tue, 5 Jun 2012 18:37:56 -0700
Message-ID: <CAP045Ao8UufrUJ7bSzz3=UgigrWGpDW7v8c50NeuJ5qGrd0VPQ@mail.gmail.com>
To: Cameron McCormack <cam@mcc.id.au>
Cc: Travis Leithead <travis.leithead@microsoft.com>, Brendan Eich <brendan@mozilla.org>, David Bruant <bruant.d@gmail.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
> 2. Does it make sense as an API design guideline to, for all objects
>   that have a toJSON extension, try to have constructors that can take
>   a JSON objects to initialize the object with?  For example:

IMO, no.  It doesn't make sense for the DOM performance object, for

- Kyle
Received on Wednesday, 6 June 2012 01:38:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC