Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce an UNLESS command #14

Open
ecpeterson opened this issue Nov 12, 2020 · 0 comments
Open

Introduce an UNLESS command #14

ecpeterson opened this issue Nov 12, 2020 · 0 comments

Comments

@ecpeterson
Copy link
Contributor

Many of the command definitions start with an (unless aborting? …) wrapper around their body. It would be preferable, I think, for this clause to be part of the procedure definition rather than the command definition. One could imagine a command along the lines of (:UNLESS slot contents) which pushes contents onto the command stack when slot evaluates to an affirmative.

This might be slightly off: it's often possible that the aborting? flag is set mid-procedure, which bypasses several commands / unwinds the continuation stack a fixed amount. In this sense, what we want is more like a condition handler, or a goto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant