[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: Interfaces in Ruby
From:       Paul Brannan <pbrannan () atdesk ! com>
Date:       2002-10-18 17:03:37
[Download RAW message or body]

On Fri, Oct 18, 2002 at 11:20:43PM +0900, Nat Pryce wrote:
> On Fri, 2002-10-18 at 14:42, Paul Brannan wrote:
> > The intent of an interface is not to cerfity a particular behavior.  It
> > is to certify that the author's intent is for the class to have a
> > particular behavior.
> 
> Isn't that the point of comments and/or documentation.  I'd argue that
> if the only point of an interface is to act as a comment, then it should
> be left as as a comment. 

There are some days that I agree.

There are other days when I feel that it would be useful to
programatically determine what the author's intent was for a class.
This is something that is difficult to do with comments alone.

Paul


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic