From: Simon Wright <simon@pushface.org>
Subject: Re: Records that could be arrays
Date: Thu, 23 Feb 2006 20:23:28 +0000
Date: 2006-02-23T20:23:28+00:00 [thread overview]
Message-ID: <m2acchddtr.fsf@grendel.local> (raw)
In-Reply-To: u8xs2xm0l.fsf@toadmail.com
Stephen Leake <stephe_on_the_web@toadmail.com> 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.
next prev parent reply other threads:[~2006-02-23 20:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-23 4:11 Records that could be arrays Justin Gombos
2006-02-23 4:51 ` tmoran
2006-02-23 13:19 ` Justin Gombos
2006-02-24 10:19 ` Stephen Leake
2006-02-23 6:32 ` Wilhelm Spickermann
2006-02-23 13:08 ` Stephen Leake
2006-02-23 13:20 ` Justin Gombos
2006-02-23 14:29 ` Wilhelm Spickermann
2006-02-24 10:31 ` Stephen Leake
2006-02-26 22:34 ` Wilhelm Spickermann
2006-02-23 8:21 ` john Doef
2006-02-23 9:22 ` Jean-Pierre Rosen
2006-02-23 13:11 ` Stephen Leake
2006-02-23 13:37 ` Justin Gombos
2006-02-23 13:06 ` Stephen Leake
2006-02-23 20:23 ` Simon Wright [this message]
2006-02-24 21:23 ` Randy Brukardt
2006-02-25 11:39 ` Dmitry A. Kazakov
2006-02-26 3:24 ` Steve Whalen
2006-02-26 9:51 ` Dmitry A. Kazakov
2006-02-27 2:26 ` Steve Whalen
2006-02-27 9:33 ` Dmitry A. Kazakov
2006-03-01 22:44 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox