2 ms·
Why would you care, though? An array is effectively a function that maps indices to values, so why not reuse the syntax? And it's not like Ada is the only one t
by int_19h 5y ago
Why would you care, though? An array is effectively a function that maps indices to values, so why not reuse the syntax? And it's not like Ada is the only one that made that choice - FORTRAN, BASIC, PL/I are some other examples.
If anything, I'd say that the missed opportunity was to make arrays compatible with function access types.