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

Charles McCathie Nevile chaals at yandex-team.ru
Tue Jan 29 05:36:48 PST 2013


On Tue, 29 Jan 2013 11:28:01 +0100, Anne van Kesteren <annevk at annevk.nl>  
wrote:

> On Mon, Jan 28, 2013 at 11:41 PM, Olli Pettay <Olli.Pettay at helsinki.fi>  
> wrote:
>> WebSocket, EventSource etc ctors do have "side effects".
>
> Exactly. And if we designed XMLHttpRequest from scratch it would have  
> them too.

Really? This doesn't seem like a good idea, so I'd be interested to know  
why. Is there an explanation laid out somewhere?

cheers

-- 
Charles McCathie Nevile - Consultant (web standards) CTO Office, Yandex
       chaals at yandex-team.ru         Find more at http://yandex.com



More information about the whatwg mailing list