but it becomes worse
i talking about less typing
Programming isn't about typing less, it's about writing code that is easy to understand and maintain.
simple fiddling with the above example
type
ARRAY_RANGE = 0..15;
var
SomeArray[ARRAY_RANGE] of <whatever you want here>;
begin
...
for I in ARRAY_RANGE do <again whatever you want>
end;
it sure beats the rather deficient junk C programmers have to write
#define ARRAY_ELEMENT_COUNT 16
int TheArray[ARRAY_ELEMENT_COUNT];
for (I = 0; I < ARRAY_ELEMENT_COUNT; I++)
Not only is that a whole lot of typing, it is far from being as easy to understand and maintain.
NOTE: the post editor automatically uppercases the letter I (that would not be welcome in a real C program.)
and if for some reason you need the count of elements in the array a simple const after the type declaration does it
const
ARRAY_COUNT = high(ARRAY_RANGE) - low(ARRAY_RANGE) + 1;
Combine the above with enumerated types (no 0 thru 15 but <somename> .. <someothername>) when applicable and you can write crystal clear code.
ETA:
The problem is that writing code that is easy to read and understand doesn't make the programmer look "hard core" and, that, seems very important to some programmers (a lot of them love Perl.)