🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3708

Strong typing (was Re: definitions)

#3708
From: Raul Rockwell
Date: Tue, 30 Apr 1991 02:07
26 lines
1681 bytes
me: Strong typing also means that the function will terminate.
new: Excuse me?  Any language implementing while loops ...

I'm going by the classic definition of a type error (a partial
function will not terminate when given values of the wrong type).
Literally, use of while loops opens the door to type errors (but the
use of a while loop is not always a type error).

The social goodness or badness of this is another matter...



new::  Values of the wrong type are assumed to possibly have
new::  incompatible representations; i.e., valid integers may not be
new::  valid floats, etc.
me:   "assumed to possibly" ???
new: Merely meaning that the strong vs weak distinction is moot if
new: there is only one type of value.

Once again, please note that you can have very useful functions which
may not be applied to specific values but may be applied to other
values using the "same type of value".  For example, the gamma
function comes to mind, which is defined for _positive integers_ and
for all _non-integer_ real numbers.

Raul Rockwell
Technical Details
Message-ID: <short.2@socrates.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!haven.umd.edu!socrates.umd.edu!socrates!rockwell
References: <2494@optima.cs.arizona.edu> <51984@nigel.ee.udel.edu> <333124@socrates.umd.edu> <52164@nigel.ee.udel.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!wuarchive!udel!haven.umd.edu!socrates.umd.edu!socrates!rockwell
From: rockwell@socrates.umd.edu (Raul Rockwell)
Newsgroups: comp.lang.misc
Subject: Strong typing (was Re: definitions)
Message-ID: <short.2@socrates.umd.edu>
Date: 30 Apr 91 02:07:02 GMT
References: <2494@optima.cs.arizona.edu> <51984@nigel.ee.udel.edu>
 <333124@socrates.umd.edu> <52164@nigel.ee.udel.edu>
Sender: rockwell@socrates.umd.edu (Raul Rockwell)
Organization: Traveller
Lines: 26
In-Reply-To: new@ee.udel.edu's message of 29 Apr 91 17: 33:11 GMT