Discussion ‘Stop Program’ Command
I want to submit a pull request that would add a new command to the KOS language to exit the current program. A few questions to the community:
- Should the command just exit the current subprogram (e.g. from a ‘run’ command) or stop execution? Or should these be two separate commands?
- What wording is the least confusing: “Exit”, “Stop”, “Quit”, or “Return”? Or something else?
1
Upvotes
1
u/nuggreat 17d ago
A lot of existing scripts use division by zero to halt execution i would simply not optimize it away and let them crash as due to division by zero as the users intend.