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
Currently for loops only work when ascending (i.e. for positive increments) because the compiler uses the lte comparison operator. Would be nice to have it work for negative increments as well. One idea is to require the increment to be an integer and not an expression so that its sign can be easily checked for at compile time and the appropriate comparison operator used.
The text was updated successfully, but these errors were encountered:
Currently for loops only work when ascending (i.e. for positive increments) because the compiler uses the
lte
comparison operator. Would be nice to have it work for negative increments as well. One idea is to require the increment to be an integer and not an expression so that its sign can be easily checked for at compile time and the appropriate comparison operator used.The text was updated successfully, but these errors were encountered: