Re: dynamic type checking - a pauline conversion?

From: Thomas Gagné (tgagne_at_wide-open-west.com)
Date: 03/13/04


Date: Sat, 13 Mar 2004 16:03:40 -0500

Robert C. Martin wrote:

>On 12 Mar 2004 23:26:09 -0800, igouy@yahoo.com (Isaac Gouy) wrote:
>
>
>
>>Robert C. Martin <unclebob@objectmentor.com> wrote in message news:<884450hlpgmtdpg7ees68eoeb2iuron47g@4ax.com>...
>>
>>
>>
>>>Even if you *can* find ways to express solutions in a statically typed
>>>language, the solutions in a dynamically typed language will often be
>>>*much* simpler. (e.g. just send the close message).
>>>
>>>
>>Is there a default implementation for this 'close' message (for
>>example in a common superclass like Object) or do we expect the method
>>send to fail at runtime when the specific class doesn't implement
>>'close'?
>>
>>
>
>The latter.
>
>
Of course, if there are really good reasons an object that doesn't
understand close() might end-up in the collection close() could either
be added to it or to Object.

-- 
.tom
remove email address' dashes for replies
opensource middleware at <http://isectd.sourceforge.net>
http://gagne.homedns.org


Relevant Pages

  • Re: XP Requirement Analysis?
    ... >Robert C. Martin wrote: ... you are much more likely to fail than if you fully define it in ... "The aim of science is not to open the door to infinite wisdom, ...
    (comp.object)
  • Re: Test Driven Development
    ... Uncle Bob (Robert C. Martin) wrote: ... > are sure will fail, ...
    (comp.object)
  • Re: XP Requirement Analysis?
    ... Robert C. Martin wrote: ... > If you fully define that user story six months before you implement ... you are much more likely to fail than if you fully define it in ...
    (comp.object)
  • Re: Test Driven Development
    ... Uncle Bob (Robert C. Martin) wrote: ... Write a test for a bit of functionality. ... the test is going to fail before I attempt to implement it in step 3. ...
    (comp.object)
  • Re: OOP/OOD Philosophy
    ... >>Robert C. Martin wrote: ... >>> the ZIGGY item printed on the report. ... calculations instinctively instead of stopping to dwell. ...
    (comp.object)