Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If expressions #11

Open
shakna-israel opened this issue Aug 7, 2018 · 0 comments
Open

If expressions #11

shakna-israel opened this issue Aug 7, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@shakna-israel
Copy link
Owner

If expressions, such as:

if(1 .lt. 10) 10, 20, 30

Are worked around by Ratfor, and it's descendants, showing to be one of the biggest areas of concern in Fortran.

if (a > b) {
  max = a
} else {
  max = b
}

However, no Ratfor successor still exists. GNU Fortran killed their Ratfor support in 2005.

If mex was able to support Ratfor, or ratfiv syntax, it would be worth a lot more to the community as a whole.

ratfiv:

      IF (A .GT. B) THEN
        MAX = A
      ELSE
        MAX = B
      ENDIF

However, computing gotos like this can be difficult, and require several tree walks.

@shakna-israel shakna-israel added the enhancement New feature or request label Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant