ara.t.howard / noaa.gov ha scritto:
> On Mon, 3 Apr 2006, Trans wrote:
> 
>>  def foo( x : String )
>>    ...
>>  end
>>
>>  def foo( x : Int )
>>    ...
>>  end
>>
>> seems to me a much more readible and versitile way of handling the
>> cases, irregardless of any contractual beneifits.
> 
> 
> not to mention that rdoc can then generate a doc block for 'what foo 
> does with
> ints' and 'what foo does with strings'.  with duck typing these get rolled
> into one block and it's strictly up to the comments to reveal the 
> distiction.

and that you can actually extend the interface, either in a subclass or 
in a singleton object or in the original one, withouth the need to acces 
the source code or adding a stack of wrappers


> 2cts.

mine, too.