Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

* Marcin Hanclik wrote:
>In the ViewModes specification [1] we define a few new events.
>All the initXXXEvent methods have currently typeArg parameter.
>I think they are superfluous, [...]

There is a n:n relationship between event types and event interfaces,
just because it may be 1:1 in special cases currently does not imply
that will remain to be the case in the future; further, omitting the
parameter in those cases would make the pattern more complicated, you
have to remember more rules, or rather, look the definition up each
time you attempt to use one of the init* methods, given how rarely
they are used and how many there are.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Monday, 24 August 2009 17:40:05 UTC