W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [Widgets] WidgetStorage interface

From: João Eiras <joaoe@opera.com>
Date: Tue, 22 Nov 2011 13:40:29 +0100
To: public-webapps <public-webapps@w3.org>
Message-ID: <op.v5clhr152q99of@joaoe>

>> Yes. Simple rule: if you change the behaviour of an interface even  
>> slightly, sub-class it.
>
> Let me clarify a little bit here, because it's bugging me. Usually, an  
> object can take an interface and implement new custom behavior without  
> any problems (interfaces generally are supposed to decuple interaction  
> from implementation… as it's done in Java… with, say "implements  
> Runnable"). However, in this particular instance, it seems that it's not  
> possible to reuse an interface in this way (maybe it's some C thing, or  
> maybe Storage is not actually defined as an interface but as an object).
>

Or then it's an implementation problem, and there is little point changing  
the specification ?

I don't see how a new interface object would make programming its behavior  
more easy.
Received on Tuesday, 22 November 2011 12:40:58 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT