Open
Description
Relevant papers:
- https://j3-fortran.org/doc/year/18/18-274.txt
- https://j3-fortran.org/doc/year/19/19-258.txt
- https://j3-fortran.org/doc/year/19/19-247r1.txt
- https://j3-fortran.org/doc/year/19/19-248.txt
Taking the second example from the 18-274
paper:
IF (PRESENT(D)) THEN
CALL SUB(A,B,C,D)
ELSE IF (X<1) THEN
CALL SUB(A,B,C,EPSILON(X))
ELSE
CALL SUB(A,B,C,SPACING(X))
END IF
One proposed syntax is "keyword syntax":
CALL SUB(A, B, C, IF (PRESENT(D) THEN D ELSE IF (X < 1) THEN EPSILON(X) ELSE SPACING(X) END IF)
The second proposed syntax is "? syntax":
CALL SUB(A, B, C, ? (PRESENT(D) D :? (X < 1) EPSILON(X) : SPACING(X) ?)