🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3657

Re: Dynamic typing (part 31,497)

#3657
From: David Wall
Date: Wed, 24 Apr 1991 21:23
20 lines
1372 bytes
David Gudeman writes, of the claim that static typing leads to less
complexity:
    That doesn't make any sense.  How can it lead to less complexity and
    fewer bugs when the implementer has to explicitely handle details
    instead of letting them be handled by the language?  Does it lead to
    less complexity and fewer bugs when implementers handle array bounds
    checking without language help?  What about checking for dereferencing
    a null pointer?  Whenever you leave such things up to the implementer
    you are providing opportunities for careless bugs.

Since when does static typing preclude runtime checks?  Ever hear of
Pascal?  Or Modula-2?

The Modula-2 I use checks for range errors, following nil pointers,
even following bad but non-nil pointers.

Moreover, the optimizer is good enough to get rid of most of these
checks, when they are provably redundant.

David W. Wall - - - - - - - - - - - - - - - - < wall@decwrl.dec.com >
Technical Details
Message-ID: <1991Apr24.212350.27855@pa.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!wall
References: <2397@optima.cs.arizona.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!wall
From: wall@pa.dec.com (David Wall)
Newsgroups: comp.lang.misc
Subject: Re: Dynamic typing (part 31,497)
Message-ID: <1991Apr24.212350.27855@pa.dec.com>
Date: 24 Apr 91 21:23:50 GMT
References: <2397@optima.cs.arizona.edu>
Sender: news@pa.dec.com (News)
Organization: DEC Palo Alto
Lines: 20