DreamBerd
DreamBerd copied to clipboard
goto statement
I'd like a goto statement that accepts a string or other code.
const var keys = {}!
addEventListener("keydown", e => keys[e.key] = true)!
addEventListener("keyup", e => keys[e.key] = false)!
function isKeyDown(key) => {
if (keys[key] = undefined) {
goto(const var keys = {}!)
}
}
similarly, adding COMEFROM is also of utmost importance.
similarly, adding COMEFROM is also of utmost importance.
Nice good job you totally beat me to it...
similarly, adding COMEFROM is also of utmost importance.
Make sure you have COMEFROM and RETURNTO. Also, make them async.
sounds good, wanna submit a PR @steveruizok?
May as well add GOTOANY as well. Can't even count how many times that woulda made life easier.
In addition to the much needed named states for COMEFROM, remember that for a full and proper control flow Cobol had the GOBACK statement
Make sure you have COMEFROM and RETURNTO. Also, make them async.
RETURNTO? or RETURNFROM? I think return should be in client code, not in func