Re: New style DO syntax?



Gordon Sande wrote:
....
The camels nose was FORALL so folks keep suggesting decorations
on DO. The question is not what Universal Iteration Construct
one could design but rather what is in keeping with the Fortran
style and is a worthwhile extension/addition.


That is why I suggested a "FORALL" style construct, which also follows the general syntax of all of the other block-constructs:
WHERE, FORALL, IF-THEN, SELECT-CASE, and even DO-WHILE, as well as the F2003 constructs ASSOCIATE and SELECT-TYPE.

Of all of these constructs, DO is the big outlier, with a lot of caveats, clearly due to the long history. It seems that it is very much in line with current Fortran Standards to include an updated DO syntax that follows the traditional DO loop, but is more uniform with all of the related constructs.

Arguing for other completely different loop constructs will almost certainly go nowhere. Just be thankful that EXIT and CYCLE where implemented.

Joe
.