Re: [heycam/webidl] Declaring modules in WebIDL (#592)

Gecko already doesn't do that in some cases.  For example, all the WebGL interfaces are in one file, for various reasons.

The file splitting behavior is more or less a convenience; conceptually IDL is all a single chunk of "stuff".  Sometimes one wants a separate file for an interface, sometimes a separate file for just a dictionary, etc.  In a C++ codebase this is all complicated by the restrictive `#include` mechanism, which might force or prevent specific file splittings...

I do agree that if we allow splitting a namespace across multiple files then that is conceptually not _that_ much different than extended attributes on an implementation level, since you end up having to create a canonical object representing the namespace scope and then tying all the pieces to it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/592#issuecomment-448238514

Received on Tuesday, 18 December 2018 14:28:02 UTC