avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Karasulu" <aok...@bellsouth.net>
Subject RE: [RRT] An interface is all you need
Date Thu, 18 Mar 2004 17:45:13 GMT
> 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.


To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org

View raw message