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
As with other rules like remove_interpolated_string and remove_compound_assignment, this would be useful for translating Luau into Lua 5.1 source code.
I implementated this myself a while ago in a different project. It converted the following:
fori=1, 4doprint("start", i)
ifi%2==0thenprint("two", i)
continueelseifi%3==0thenprint("three", i)
breakendprint("end", i)
end
As with other rules like
remove_interpolated_string
andremove_compound_assignment
, this would be useful for translating Luau into Lua 5.1 source code.I implementated this myself a while ago in a different project. It converted the following:
into:
The
repeat until true
construct is used to execute a block of statements once where it can be broken out of usingbreak
.The text was updated successfully, but these errors were encountered: