Re: Records that could be arrays
- From: Jean-Pierre Rosen <rosen@xxxxxxxxx>
- Date: Thu, 23 Feb 2006 10:22:53 +0100
Justin Gombos a écrit :
I have set a rule for myself: Composite types composed solely of oneI beg to disagree here. Arrays are for *iterative* structures, if you don't have a for loop over an array, it should be a record.
type of element should be declared as arrays rather than records.
I've never seen this rule in a coding standard. The idea is that you
can be more expressive with an array. Example- there are more options
when it comes to an arrays role in control structures. Plus the
"others =>" notation is available. Thoughts?
The fact that all components are of the same type may be an accident that changes during program evolution.
--
---------------------------------------------------------
J-P. Rosen (rosen@xxxxxxxxx)
Visit Adalog's web site at http://www.adalog.fr
.
- Follow-Ups:
- Re: Records that could be arrays
- From: Justin Gombos
- Re: Records that could be arrays
- From: Stephen Leake
- Re: Records that could be arrays
- References:
- Records that could be arrays
- From: Justin Gombos
- Records that could be arrays
- Prev by Date: Re: Records that could be arrays
- Next by Date: Re: Quick question about Ada code formatting.
- Previous by thread: Re: Records that could be arrays
- Next by thread: Re: Records that could be arrays
- Index(es):
Relevant Pages
|
|