[Bug 23225] Let's start using class, not interface

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23225

Jonas Sicking <jonas@sicking.cc> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonas@sicking.cc

--- Comment #12 from Jonas Sicking <jonas@sicking.cc> ---
I don't think we should allow

X implements SomeClass;

we should only allow

X implements SomeInterface;

I.e. classes should always have "interface objects" (aka "constructor
functions") and interfaces never have them. And only classes show up on the
prototype chain (with exception for weirdness on the global scope).

Interfaces would only be used as a construct for described shared APIs and for
when those shared interfaces are required in function arguments. I.e.
interfaces would only be used for

X implements SomeInterface;

and

  void fooFunction(SomeInterface arg);

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 13 September 2013 16:09:05 UTC