Related articles |
---|
[29 earlier articles] |
Re: Multiple return values mark@omnifest.uwm.edu (1997-05-13) |
Re: Multiple return values bear@sonic.net (Ray Dillinger) (1997-05-13) |
Re: Multiple return values jan@fsnif.neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen) (1997-05-14) |
Re: Multiple return values hbaker@netcom.com (1997-05-14) |
Re: Multiple return values markt@harlequin.co.uk (Mark Tillotson) (1997-05-25) |
Re: Multiple return values hbaker@netcom.com (1997-05-25) |
Re: Multiple return values jmccarty@sun1307.spd.dsccc.com (1997-05-30) |
From: | jmccarty@sun1307.spd.dsccc.com (Mike McCarty) |
Newsgroups: | comp.compilers,comp.lang.misc |
Date: | 30 May 1997 23:09:20 -0400 |
Organization: | DSC Communications Corporation |
References: | 97-04-091 97-04-112 97-05-273 |
Keywords: | design, theory |
marssaxman < (Mars Saxman) marssaxman@sprynet.com> wrote:
)> I think it is an artefact of the origin of the "function" concept. The
)> idea of a function in maths is that you give it some parameters and it
) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)> performs some calculation on them. The result of the calculation is
)> the return value. It doesn't make sense to have, for example, an
)> arctangent return more than one value. Given the origins of computing
)> in maths it is easy to see why this habit has been carried on.
Mark Tillotson <markt@harlequin.co.uk> wrote:
)Huh? Mathematically a function is simply a many-1 binary relation
)defined for the whole of its domain. Any talk of more than one
)argument is shorthand for using cartesian products, which you can do
)with the result just as easily. In fact functions really don't have
)anything to do with calculation!!
[snip]
This is not true. A function f:RxR -> R is different from a function
taking two real arguments. The first is a unary function, the second
is a binary function. They are -not- the same thing. Derivatives and
integrals, in particular, are not the same. Didn't you learn that a
multiple integral was equivalent to an iterated integral, but not the
same? Is it also not obvious that a partial derivative is different
from a total derivative?
Mike
--
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.