[J3] Why is += missing?
Vipul Parekh
parekhvs at gmail.com
Thu Sep 2 02:21:17 UTC 2021
On Wed, Sep 1, 2021 at 7:48 PM Van Snyder via J3 <j3 at mailman.j3-fortran.org>
wrote:
> .. If ASSOCIATE is too onerous, a statement-scope association, as I
> proposed in Section 2.15 of 03-258r1, can ameliorate that. Both the
> ASSOCIATE construct, and the statement-scope association I proposed, are
> more general than +=. ..
>
The suggestion in section 2.15 of 03-258r1 with *a special character* to
designate a pronoun fails to come across as Fortran-like. One example
given in section 2.15 of 03-258r1 is as follows:
a(s @ (3*i+1)) = b(s) ! instead of a(3*i+1) = b(3*i+1)
In my personal experience in industry, the languages that use special
characters liberally present a lot of issues to many engineers and
scientists with readability and ease-of-use, especially if the idiom(s)
with such characters are not well-established; I believe the use of '@'
above will fall into such a category.
Many aspects of modern Fortran (and by this I mean revisions starting with
Fortran 90) with block constructs have the look and feel of technical
"grammar" and as such, it is welcome to my peers and colleagues. From what
I have seen and learnt, I believe something like a 'WITH` *statement *clause
will go better with modern Fortran when it comes to statement-scope
association:
with (s => 3*i+1) a(s) = b(s)
Vipul Parekh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210901/6b02fd24/attachment-0001.htm>
More information about the J3
mailing list