> I agree, but I also think that there are definite advantages to attaching
> rules to an interface.  See the java collections framework as an example.
> Certainly, you could implement a remove method that actually adds, but
> that
> would be stupid.  This is why interfaces with attached semantics should
> come
> with conformance test suites.  I think that the whole point is that there
> is
> no way to 100% safeguard against misuse when using an interface (or even
> any
> non-final class).

Very good point with the collections example and interface can't enforce 
code semantics just its syntax.

Alex




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to