[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use end or endif is indifferent?
From: |
Ardid Ramirez, Joan Salvador |
Subject: |
Re: use end or endif is indifferent? |
Date: |
Thu, 29 Nov 2018 13:43:04 +0000 |
Hello Sergei,
this is correct for Octave, but please keep in mind that Matlab (2016a) does
not support "endif" and "endfor". So when you have to cooparate with people
using Matlab, you could instead use "end%if" and "end%for" which will
increase readability of your code, though you will losse Octave's advanced
diagnostic abilities as mentioned in your link.
Mmm, thinking about it, it would actually be great if Octave would accept
end%if as an alias of endif and end%for as an alias of endfor. This would bring
the best of the two worlds, keeping all Octave's goodness, while keeping Matlab
compatibility.
Sending it to maintainers to see if Octave Devs would consider this as a
feasible option...
....
a.