In article
<
471021ea-1d9e-4df3...@d20g2000vbh.googlegroups.com>,
I'm having a hard time thinking of many such uses. The common patterns
are:
Structure with arbitrary number of items: Use a list if the primary use
will be sequential access rather than random access, or you need to do
lots of inserts/deletes; use an array for lots of random access.
Structure with fixed number of items: If they're fixed, they're usually
not anonymous, so a structure or CLOS object is usually appropriate.
Yes, there are exceptions. If you have an object representing cars, you
might have a slot containing wheels, and it would always have 4 elements
that could be treated equivalently. But I still can't imagine accessing
them using fixed accessors like vfirst, vsecond, etc.; what application
would need to operate specifically on the second wheel? If the position
in the vector has a special meaning, you should be using a structure
instead, so that you can name it properly (e.g. front-passenger-wheel).