Add specification of if, for and while statements.
if: document nested if's and what the else binds to.
document if else
There are 3 types of for ... range statements, to be spec'ed more clearly:
numeric step range
ranging over array elements
ranging over map keys
There is an arguable inconsistency with for ... range:
numeric step range: Evaluated once at beginning (similar to python)
arrays / maps: can be modified while iterating over them and may change iteration count, map example
numeric step range results may appear confusing for (see discord discussion ):
x := 1
for i := range x-1 x+5 1
x = x + 1
print i
end
print "\nx: " x
Add specification of
if
,for
andwhile
statements.if
: document nestedif
's and what theelse
binds to. documentif else
There are 3 types of
for
...range
statements, to be spec'ed more clearly:There is an arguable inconsistency with
for ... range
: numeric step range: Evaluated once at beginning (similar to python) arrays / maps: can be modified while iterating over them and may change iteration count, map examplenumeric step range results may appear confusing for (see discord discussion ):