[J3] [EXTERNAL] Re: Syntax of conditional expressions

Van Snyder van.snyder at sbcglobal.net
Tue Jun 29 22:28:20 UTC 2021

On Tue, 2021-06-29 at 19:28 +0000, Clune, Thomas L. (GSFC-6101) via J3
> I chose some random variables and conditions from my own code  in a
> nested block,  and grant me that we’re doing the nontrivial case
> where there is at least one else:
> myVariable = ( has_ungrid -> AttributeGet(‘UNGRIDDED_DIMS’:
>  default_provided -> default : gridded_default )

Don't lose track of the other functionality desired for conditional
expressions: Computing whether an actual argument is present.

With it, in a reference to a procedure that has N optional arguments,
you have N conditional expression arguments.

Without it, you have a nested IF THEN ELSE IF ... ELSE END IF construct
with 2**N blocks.

Please don't kill the feature because you don't like the syntax. We
aready agreed on requirements. In our process, syntax comes AFTER
requirements, not before.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210629/276368aa/attachment.htm>

More information about the J3 mailing list