Newsgroups: comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!news.mathworks.com!news.maxwell.syr.edu!news.texas.net!uunet!in3.uu.net!uucp1.uu.net!world!bobduff
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Static vs. Dynamic typing again (was Re: OO, C++, and something much better!)
Message-ID: <E4t23u.F9A@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
References: <JSA.97Jan16141937@alexandria> <32ec94c5.12380906@news.ipass.net> <E4n2rn.n4@world.std.com> <32f40669.218760080@news.jumppoint.com>
Date: Thu, 30 Jan 1997 05:04:41 GMT
Lines: 33
Xref: glinda.oz.cs.cmu.edu comp.lang.smalltalk:50398 comp.lang.eiffel:17965 comp.lang.ada:56816 comp.object:60560

In article <32f40669.218760080@news.jumppoint.com>,
John Gale <john@peacesummit.com> wrote:
>} Obviously both programmers think its useful to know what type is
>} expected for a formal parameter.  The latter has the advantage that it
>} can't accidentally be incorrect information.
>
>Granted, however, tools can easily be developed to check that aString and
>anotherString are always passed Strings.  The tools can be set to run in the
>background so that you can do something else while they are working et voila.
>BUT this does require that the programmer always have the word String where a
>string is wanted.

I'm not sure what, exactly, these tools are supposed to do.  I mean,
what does it make of notAString (which is anything but a String)?  More
realistically, what does it make of lengthOfTheNameString, which is (of
course) an integer?  (In Smalltalk, I mean.)

Besides, "tools can easily be developed" is hardly a useful argument,
unless it's actually been done.

>I am not trying to get any religious war going here.

I fear it's too late.  (But I still think it's fun to discuss particular
language features, if people don't get too caught up in "My language is
better than yours.")

>...Each system seem to have
>challenges and benefits.  I want the benefits of both without any of the
>challenges. :)

Me too.

- Bob
