|
The following is not intended to be an all-encompassing definition. Rather, it attempts to illuminate a general concept by way of examples.
What is an Array-Programming Language?An array-programming language is a computer programming language which treats multi-element arrays as first-class, native objects. A prototypical example is the language APL. Languages of this kind incorporate arrays naturally and easily: this often results in high-level code with very few loops.A simple test is, if "A" is an array of arbitrary size and dimensionality, does an expression like "A+1" do something sensible like add one to each element of "A"? Of course, non-array languages, like C or Basic, handle arrays in a fashion. However, they do not deal with them as arrays but instead must loop through them a single element at a time. More advanced languages like C++ can define arrays and array operations but these are not native to the language nor well-integrated into it. The Standard Template Library in C++ handles arrays by defining "iterators" to process elements of an array. This approaches but fails to meet the true spirit of array-languages because of the emphasis on "iteration". One of the strengths of an array-language is that it allows us to use an array all-at-once as a single thing, as an integrated aggregate rather than serially, as individual pieces. |

Last Update: December 24, 2002
For questions, problems, or comments regarding this website, please send
email to:infodir_sigapl@acm.org