[J3] Question about the conditional expression syntax in 21-157r2
Milan Curcic
caomaco at gmail.com
Wed Jun 30 17:53:40 UTC 2021
Hi Malcolm,
In 21-157r2, you wrote:
> Conditional expression with elseif-chaining:
> ( cond ? expr : cond2 ? expr2 : expr3 )
Are parens required? It seems to me that they don't need to be and we could
write:
Conditional expression with elseif-chaining:
cond ? expr : cond2 ? expr2 : expr3
and if a programmer likes parens as a visual, they can add them.
What do you think?
Thanks,
Milan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210630/957768a0/attachment.htm>
More information about the J3
mailing list