2 ms·
Ummm...no. Fortran was originally designed as a language that made dealing with numbers in arrays easy, but the arrays themselves were containers that had a fu
by dreamcompiler 3y ago
Ummm...no.
Fortran was originally designed as a language that made dealing with numbers in arrays easy, but the arrays themselves were containers that had a fundamentally different type than numbers. In a true array language like APL there's no difference.
Modern versions of Fortran have blurred the distinction somewhat but in older Fortran arrays were very different from numbers. Arrays couldn't even be dynamically allocated or resized back in the day much less "added together," whatever that might mean.
An analogy: Fortran has arrays like C has functions. But that doesn't make Fortran an array language any more than C is a functional language.
APL is an array language like Haskell is a functional language.
In Fortran, numbers are the fundamental data type. Arrays are just collections of numbers. In APL, arrays are fundamental. A number in APL is just a lonely array.