Article View: comp.lang.misc
Article #218Re: Types, arrays, generality, and notation (was: Fortran90 and Arrays)
From: Stephen P Spackman
Date: Wed, 15 Apr 1992 06:41
Date: Wed, 15 Apr 1992 06:41
29 lines
2372 bytes
2372 bytes
In article <ROCKWELL.92Apr15002308@socrates.umd.edu> rockwell@socrates.umd.edu (Raul Deluth Miller-Rockwell) writes:
|Jim Giles:
Nope; I said this:
| ||> [... reduction on empty array ...]
| ||> Nono, you missed the point. Some operations (like "+") make
| ||> SENSE for empty arrays, and there you supply the appropriate
| ||> value (0). Others (like "min") only make sense on an empty
| ||> array in an extended domain (for present purposes: don't make
| ||> sense) and so you REQUIRE at least one element, ...
|
|I've been hoping some one else would bring this up, but: what kind of
|implementation is this, where you've got a numeric type but no maximum
|element of that type? I wasn't aware that could happen with a finite
|set of numbers -- at least, not for the case where those numbers are
|members of the set of real numbers.
That's not the point. The point is that if I say min({}) and you say
-32768, you are WRONG. That is NOT the answer. min({} union {x}) may
be x, but you've answered based on the extension rather than the
intension and that's a bug in *my* book. And if you say -infinity you
are only right if the type system includes a -infinity point, which it
probably doesn't. Many operations don't even HAVE a consistent
identity, even a notional one like infinity.
----------------------------------------------------------------------
stephen p spackman Center for Information and Language Studies
stephen@estragon.uchicago.edu University of Chicago
----------------------------------------------------------------------
Technical Details
Message-ID:
<STEPHEN.92Apr15014148@estragon.uchicago.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!linac!uchinews!tira!stephenReferences:
<ROCKWELL.92Mar21001252@socrates.umd.edu> <STEPHEN.92Apr11043808@estragon.uchicago.edu> <1992Apr13.194947.17250@newshost.lanl.gov> <STEPHEN.92Apr14171919@estragon.uchicago.edu> <ROCKWELL.92Apr15002308@socrates.umd.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!linac!uchinews!tira!stephen From: stephen@estragon.uchicago.edu (Stephen P Spackman) Subject: Re: Types, arrays, generality, and notation (was: Fortran90 and Arrays) In-Reply-To: rockwell@socrates.umd.edu's message of 15 Apr 92 05:23:08 GMT Message-ID: <STEPHEN.92Apr15014148@estragon.uchicago.edu> Lines: 29 Sender: news@uchinews.uchicago.edu (News System) Organization: University of Chicago CILS References: <ROCKWELL.92Mar21001252@socrates.umd.edu> <STEPHEN.92Apr11043808@estragon.uchicago.edu> <1992Apr13.194947.17250@newshost.lanl.gov> <STEPHEN.92Apr14171919@estragon.uchicago.edu> <ROCKWELL.92Apr15002308@socrates.umd.edu> Date: Wed, 15 Apr 1992 06:41:40 GMT