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

wdte: add a way to execute a chain section regardless of an error #170

Open
DeedleFake opened this issue Dec 6, 2018 · 0 comments
Open

Comments

@DeedleFake
Copy link
Owner

As of #168, it's now possible to 'catch' errors in chains using -| as a chain operator. What it's not possible to do, however, is to cause a section to be used regardless of whether or not an error happened. A 'finally', essentially. This would be useful for, for example, opening a file, writing to it, and then closing whether or not there was an error.

Two likely possibilities:

  • Cause ignored sections to do this. This would be useful for the above example, but might not be useful in some other cases.
  • Add another chain operator, such as -|>, which would do this. I'm not particularly a fan of this one, but it's definitely possible.
@DeedleFake DeedleFake self-assigned this Dec 6, 2018
@DeedleFake DeedleFake added this to Todo in Initial Implementation via automation Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant