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
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
The text was updated successfully, but these errors were encountered:
Add specification of
if
,for
andwhile
statements.if
: document nestedif
's and what theelse
binds to.document
if 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 example
numeric step range results may appear confusing for (see discord discussion ):
The text was updated successfully, but these errors were encountered: