Re: Records that could be arrays
- From: Simon Wright <simon@xxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 20:23:28 +0000
Stephen Leake <stephe_on_the_web@xxxxxxxxxxxx> writes:
But records are deeply embedded in my psyche; these types just feel
more natural as records than arrays. I guess we need to catch the kids
in high school, and teach them to use arrays instead of records.
I would certainly go for the record approach. Because in my world it
is rare to the point of non-existence to have structures like this;
there's always some extra component of a different type.
What's the logical difference between (r, theta) and (x, y)? the
former could hardly be treated as an array.
Well, since I personally would make Metres a subtype of Float, ditto
Radians, perhaps there's not that much difference in practice -- but a
world, logically.
.
- References:
- Records that could be arrays
- From: Justin Gombos
- Re: Records that could be arrays
- From: Stephen Leake
- Records that could be arrays
- Prev by Date: Re: GNAT GPL compile problems
- Next by Date: Re: help with include and library files in GPS
- Previous by thread: Re: Records that could be arrays
- Next by thread: Re: Records that could be arrays
- Index(es):