Re: make i:j equivalent to [(k,k=i,j)]?




beliavsky@xxxxxxx wrote:
Would it break anything in Fortran to make an expression

i:j

equivalent to the array constructor

[(k,k=i,j)]

The R programming language, which has a matrix language similar to
Fortran, effectively does this. I know that "not breaking" is not by
itself sufficient reason to add "syntactic sugar" to the language.

Since FORALL supersedes this, I guess this will never happen. FORALL is
less
elegant but more powerful.

.



Relevant Pages