Re:Fortran adds conditional expressions
by Bostonian on Thursday July 01, 2021 @02:43PM
(#27702823)
The ternary is new. Before, one could use the merge intrinsic function to write
but this is risky, because merge does not short-circuit, and the program could crash if i < 1. The ternary syntax
only evaluates one of the expressions.
[ Parent
| on HN ]
There are no comments on this comment yet.