SmileBASIC will automatically optimize parts of expressions that use numerical constants and operators.
This means you can write code like this:
FOR I=0 TO 16-1 ...
'and it won't be any slower than:
FOR I=0 TO 15 ...
Note that SB will not use mathematical simplification. For example:
'will not simplify to
To make SB simplify it, the multiplication of 2*3 must be done first, either X*(2*3) or 2*3*X
Logical and comparison operators are not simplified (&& || > < >= <= == !=), nor are any string operations (string+string, string*number).