You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
thanks for addressing my last issue. Since this is so actively maintained, I thought you may be interested in another issue that is, however, not as critical.
I'll explain it on MWEs. if 0 == 0, a = 1 + 1, end
is kept as it is by the tool. However, if 0 == 0, a = 1 + 1; end
is turned into if 0 == 0, a = 1 + 1; end
I think these cases should behave identically. I personally prefer the former behavior because it does allow one liners. However, I can also understand if one liners are eliminated - in this case, however, the a = 1 + 1; expression should also put in a separate line.
Anyways, thanks again. And it's not an important issue because it does not break the code after all.
The text was updated successfully, but these errors were encountered:
I would expect both of your examples to stay one-liners if "AllowOneLinerIf" if set to true. While I would avoid multiple statements in an if one-liner, I can think of examples that may make sense, e.g., to avoid distracation from plotting commands such as if ishold, hold('off'); cla; end
Anyways, thanks again, your enthusiasm for this project is really commendable.
Hi,
thanks for addressing my last issue. Since this is so actively maintained, I thought you may be interested in another issue that is, however, not as critical.
I'll explain it on MWEs.
if 0 == 0, a = 1 + 1, end
is kept as it is by the tool. However,
if 0 == 0, a = 1 + 1; end
is turned into
if 0 == 0, a = 1 + 1;
end
I think these cases should behave identically. I personally prefer the former behavior because it does allow one liners. However, I can also understand if one liners are eliminated - in this case, however, the
a = 1 + 1;
expression should also put in a separate line.Anyways, thanks again. And it's not an important issue because it does not break the code after all.
The text was updated successfully, but these errors were encountered: