From: Nick Leaton <nickle@calfp.co.uk>
Subject: Re: Why Ada is not the Commercial Lang of Choice
Date: 1997/06/20
Date: 1997-06-20T00:00:00+00:00 [thread overview]
Message-ID: <33AA830B.46EE@calfp.co.uk> (raw)
In-Reply-To: 1997Jun20.070747.1@eisner
Larry Kilgallen wrote:
>
> In article <EC1zG2.DFo@syd.csa.com.au>, donh@syd.csa.com.au (Don Harrison) writes:
>
> > However, they differ in that digits must be grouped in threes. Grouping in
> > threes is an arbitrary choice and, IMO, too restrictive. For example, it makes
> > no sense for base 2 literals. OTOH, I think Ada's free placement is too liberal
> > because it allows different groupings within the same literal.
> >
> > Something in between is probably optimal - like allowing any grouping but with
> > the restriction that it must be consistent within a literal.
>
> I can envision an application using part numbers, where the first
> two digits indicate the plant that built the part and the last
> two represent the revision number. In that case, 21_302_561_03
> might be a much more natural representation than 2_130_256_103.
> In fact, absent some other well-known (to humans) aspect of the
> part numbering scheme, it would also provide a better scanning
> profile than 21_30_25_61_03.
>
I agree with the original idea, that splitting numbers in threes doesn't
make sense if you are dealing with a binary number. Also, if you were
Japanese, then splitting in 4 makes more sense.
However, your part number example is not a good one. You should be
splitting it into two. You have two attributes, plant number and
revision number. You then have a separate problem of how to display the
information, which is turning the two pieces of information into a
string, which is displayable. How you store the information is then a
separate problem, where you may do something like storing an integer
value, of plant_number * 100 + revision_number.
--
Nick
next prev parent reply other threads:[~1997-06-20 0:00 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-18 0:00 Why Ada is not the Commercial Lang of Choice Robert I. Eachus
1997-06-18 0:00 ` Dale Stanbrough
1997-06-19 0:00 ` Robert A Duff
1997-06-21 0:00 ` Paul Van Bellinghen
1997-06-20 0:00 ` Robert Dewar
1997-06-23 0:00 ` John G. Volan
1997-07-03 0:00 ` Shmuel (Seymour J.) Metz
1997-07-03 0:00 ` Robert Dewar
1997-07-06 0:00 ` Yasmiin S. Davis
1997-07-06 0:00 ` Robert Dewar
1997-07-07 0:00 ` Shmuel (Seymour J.) Metz
1997-07-04 0:00 ` Paul Van Bellinghen
1997-07-13 0:00 ` Ken Mays
1997-07-13 0:00 ` Robert Munck
1997-07-14 0:00 ` Ken Mays
1997-06-19 0:00 ` Steve Jones - JON
1997-06-19 0:00 ` Peter Hermann
1997-06-19 0:00 ` Anonymous
1997-07-17 0:00 ` Shmuel (Seymour J.) Metz
1997-06-20 0:00 ` Robert Dewar
1997-06-20 0:00 ` Don Harrison
1997-06-20 0:00 ` Larry Kilgallen
1997-06-20 0:00 ` Nick Leaton [this message]
1997-06-23 0:00 ` Don Harrison
1997-06-24 0:00 ` Bertrand Meyer
1997-06-24 0:00 ` Nick Leaton
1997-07-22 0:00 ` Dr. Vladimir Il'ich Fomin
1997-06-20 0:00 ` Roy Grimm
1997-06-20 0:00 ` Donovan Baarda
1997-06-23 0:00 ` Robert Dewar
1997-06-24 0:00 ` Don Harrison
1997-06-24 0:00 ` Robert Dewar
1997-06-23 0:00 ` Joachim Durchholz
1997-06-20 0:00 ` Robert Dewar
1997-06-21 0:00 ` Keith Thompson
1997-06-21 0:00 ` Robert Dewar
1997-06-24 0:00 ` Ken Garlington
1997-06-24 0:00 ` Robert Dewar
1997-06-28 0:00 ` Robert I. Eachus
1997-06-28 0:00 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
1997-06-13 0:00 Paul Van Bellinghen
1997-06-17 0:00 ` Dale Stanbrough
1997-06-17 0:00 ` Robert Munck
1997-06-18 0:00 ` Ken Garlington
1997-06-19 0:00 ` Ole-Hjalmar Kristensen FOU.TD/DELAB
1997-06-19 0:00 ` Ken Garlington
1997-06-17 0:00 ` Robert Dewar
1997-06-20 0:00 ` nma123
1997-06-24 0:00 ` Adam Beneschan
1997-06-18 0:00 ` Nick Roberts
1997-06-18 0:00 ` Peter Hermann
1997-06-20 0:00 ` Robert Dewar
1997-06-25 0:00 ` Van Snyder
1997-06-26 0:00 ` Robert Dewar
1997-06-30 0:00 ` Ralph Paul
1997-07-02 0:00 ` Joerg Rodemann
1997-07-02 0:00 ` Joerg Rodemann
1997-07-02 0:00 ` Ralph Paul
1997-06-19 0:00 ` Steve Doiel
1997-06-19 0:00 ` Anonymous
1997-07-22 0:00 ` Shmuel (Seymour J.) Metz
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox