Re: Records that could be arrays



Hi,

Justin Gombos wrote:

On 2006-02-23, Wilhelm Spickermann
<zulo.20.unbenutzbar@xxxxxxxxxxxxxxx> wrote:

I think it depends on the meaning of "type". The three
floating point numbers in a polar coordinate system are of
three different _kinds_ and should be put into a record and
not into an array -- even if they have the same _type_.

Why?


These coordinates are of a different kind as they are used
differently -- all geometric formulas handle them differently.
So it is just a coincidence if they are of the same type and so
I wouldn't draw design decisions from the type alone.

This becomes also visible in the missing loop statements in
typical polar coordinate operations. And it would be rather
unusual for an array to have a special equality definition while
it is rather normal for a record (phi is "dont care" when theta
is zero -- or AFAIK the other way round in North America).

Wilhelm

.