@aerosayan that’s a long standing issue that I also have with Fortran. I created an issue with many ideas here:
- Idea: Support dot (`.`) as an alternative to the `%` operator (#84) · Issues · lfortran / lfortran · GitLab (we since moved the issue to GitHub).
Some prior discussion at Discourse here and here.
You are bringing some other good ideas to use either ->
or ::
both of which I also feel are more readable.
Now when LFortran has a full parser (beta quality), we can try some of these ideas and see if it is possible to implement it robustly. I think just using .
is the best, but it’s a bit tricky to implement, see the issue.