W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2011

Re: [WebIDL] remove modules

From: Robin Berjon <robin@berjon.com>
Date: Thu, 14 Jul 2011 13:11:48 +0200
Cc: Anne van Kesteren <annevk@opera.com>
Message-Id: <0BDDD4A0-BEDE-400A-A5C8-F6B9CF5FDA5F@berjon.com>
To: public-script-coord@w3.org
On Jul 14, 2011, at 09:11 , Cameron McCormack wrote:
> Anne van Kesteren:
>> Having everything in the same module seems fine for the web platform.
> FWIW, I agree, itís a complication I have come around to thinking we can
> do without.

I heartily agree. Some older specs might use them but I don't think that it matters all that much. If it does, we can issue errata.

> One, BONDI folks were using IDL modules, IIRC.  Although I think their
> spec stabilised well before now, so presumably theyíre dependent on an
> earlier WD of Web IDL, and thus itís probably not a big deal to drop the
> feature, aside from the fact that we should focus on the Web and not
> other concerns.

BONDI doesn't exist anymore, so it's hardly a concern. WAC still uses modules but that probably was not a particularly good idea, and I'm pretty sure that they could drop that.

> Two, certain Web platform interfaces have been in particular packages
> in the Java binding, e.g. DOM Core interface have been in org.w3c.dom,
> Events in org.w3c.dom.Events, and so on.  I donít think this arrangement
> has any particular benefits.  If Java implementations of Web platform
> APIs need to keep interfaces from these specs in particular Java
> packages, this could be done out-of-band from the IDL.

Note that traditionally this has not been fully done using modules, but instead with a pragma. Which is to say, the DOM doesn't have:

module org {
    module w3c {
        module dom {
            // ...

but instead:

#pragma prefix "w3c.org"
module dom {
    // ...

I don't believe that the Web IDL grammar allows for pragmata, but I'm guessing that it shouldn't be a big deal to find another such mechanism.

Robin Berjon - http://berjon.com/ - @robinberjon
Received on Thursday, 14 July 2011 11:12:23 UTC

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