From: "Chad R. Meiners" <crmeiners@hotmail.com>
Subject: Re: Comments at the End of Lines
Date: 1999/07/03
Date: 1999-07-03T00:00:00+00:00 [thread overview]
Message-ID: <931033493.075.42@news.remarQ.com> (raw)
In-Reply-To: 377e3757.0@news.pacifier.com
> You'll have a hard time persuading me that you need comments on separate
> lines for the following code (declarations).
>
> pieceLength : Float; -- inches
> pieceArea : Float; -- square feet
> pieceVolume : Float; -- cubic feet
>
> SteveD
Wouldn't it be better to declare ADT's for the units of measurement? You
could then write the declarations like this:
pieceLength : Inches;
pieceArea : Square_Feet;
pieceVolume : Cubic_Feet;
You then can have proper type check since I cannot think of a reason why you
would want to assign a volume to length. Not to mention that the remarks
are now unnecessary.
-Chad R. Meiners
next prev parent reply other threads:[~1999-07-03 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-02 0:00 Comments at the End of Lines Roger Racine
1999-07-02 0:00 ` John Duncan
1999-07-02 0:00 ` Robert Dewar
1999-07-02 0:00 ` Robert Dewar
1999-07-03 0:00 ` Steve Doiel
1999-07-03 0:00 ` Larry Kilgallen
1999-07-03 0:00 ` Chad R. Meiners [this message]
1999-07-03 0:00 ` John Duncan
1999-07-03 0:00 ` Steve Doiel
1999-07-02 0:00 ` Martin C. Carlisle
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox