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

Re: [whatwg] [Notifications] Constructor should not have side effects

From: Elliott Sprehn <esprehn@gmail.com>
Date: Tue, 29 Jan 2013 15:17:43 -0500
Message-ID: <CAPJYB1iNapr50rfuGWi59rwiMuCBwEV5RR=ioGqPMUgaHupg_A@mail.gmail.com>
To: Ryosuke Niwa <rniwa@apple.com>
Cc: Charles McCathie Nevile <chaals@yandex-team.ru>, olli@pettay.fi, Jake Archibald <jaffathecake@gmail.com>, WHATWG <whatwg@whatwg.org>
On Tue, Jan 29, 2013 at 3:02 PM, Ryosuke Niwa <rniwa@apple.com> wrote:

> ...
> Is that even a valid use case? It seems dubious to instantiate a class
> named "request" and then not send a request.
You can't go down that line of thinking because it doesn't generalize. For
instance why would I instantiate a class named "node" without putting it
into the tree? If we followed that logic then new HTMLDivElement should
append itself into the document by default.

- E
Received on Tuesday, 29 January 2013 20:18:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:19 UTC