goboscript
goboscript copied to clipboard
C-style for loop implemented using repeat-until
for loop implemented using repeat-until
Note: The condition is a until condition, not a while condition
for x = 1; x > 10; x++ {
# stmts...
}
Hey @aspizu 👋 could I take this? (coming from onlydust)
there is already a PR that closes this, but its outdated, feel free to give this a try if you want to.
the for loop is partially already a block btw (only for step=1 tho)
he knows. it also behaves in a pretty weird way