🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3553

Re: Dynamic typing (part 3)

#3553
From: victor yodaiken
Date: Tue, 16 Apr 1991 15:22
28 lines
2384 bytes
In article <OLSON.91Apr9012119@lear.juliet.ll.mit.edu> olson@lear.juliet.ll.mit.edu ( Steve Olson) writes:
>
>I am aware that demanding detailed decisions about storage layout or machine
>data-types is not inherent to the concept of static typeing.  I would be 
>interested in hearing about a language where you could do something
>like declare x to be a "number".  Does such exist?  Efficiency aside, does
>there exist a language where a static type system catches lots of errors but
>dosen't get in your way the way current examples do?  I don't know myself
>-- thats why I read this list!


Ignoring, for just a moment, the always fascinating topic of 
lisp versus C, this seems to get at what I want to understand from this
discussion: namely, is there something inherent in "static" typing
and type checking that makes it so tedious and baroque? Is it not
possible to have a programming language in which types are used as in
mathematics to clarify, disambiguate, and catch errors? I do not
buy the argument that there is a real plus in being able to write
expressions that may not have any meaning. That is, if I write
$f(X)$ I should be able to ensure, during design time, that 
f is defined over all possible instantiations of X. Why, one would
find it reasonable to do otherwise is beyond me.
Sorry if this is just a result of ignorance.
On the other hand, the clumsy type hierarchies of the programming
languages that I am familiar with, are not that impressive either. 
It is not clear that "types" should form a "hierarchy" at all:
integers are not simply a stripped down version of reals, the
ring Z/3 is not just a smaller version of the ring Z/170, etc. etc.
Technical Details
Message-ID: <29352@dime.cs.umass.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!m2c!umvlsi!dime!yodaiken
References: <28875@dime.cs.umass.edu> <49907@nigel.ee.udel.edu> <28924@dime.cs.umass.edu> <OLSON.91Apr6155734@lear.juliet.ll.mit.edu> <28937@dime.cs.umass.edu> <OLSON.91Apr9012119@lear.juliet.ll.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!m2c!umvlsi!dime!yodaiken
From: yodaiken@chelm.cs.umass.edu (victor yodaiken)
Newsgroups: comp.lang.misc
Subject: Re: Dynamic typing (part 3)
Message-ID: <29352@dime.cs.umass.edu>
Date: 16 Apr 91 15:22:24 GMT
References: <28875@dime.cs.umass.edu> <49907@nigel.ee.udel.edu> <28924@dime.cs.umass.edu> <OLSON.91Apr6155734@lear.juliet.ll.mit.edu> <28937@dime.cs.umass.edu> <OLSON.91Apr9012119@lear.juliet.ll.mit.edu>
Sender: news@dime.cs.umass.edu
Reply-To: yodaiken@chelm.cs.umass.edu (victor yodaiken)
Organization: University of Massachusetts, Amherst
Lines: 28