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

Error Handling #1

Open
rmhsilva opened this issue May 6, 2020 · 1 comment
Open

Error Handling #1

rmhsilva opened this issue May 6, 2020 · 1 comment

Comments

@rmhsilva
Copy link
Contributor

rmhsilva commented May 6, 2020

Currently, errors in Python/Teal cause everything to halt and fail - you have to restart the program.

Teal needs a condition signalling/exception handling mechanism.

This has two parts

  • the machine instructions (register condition handler, signal condition)
  • the teal special forms to declare handlers/restarts, and signal conditions.
@rmhsilva
Copy link
Contributor Author

Preliminary thoughts

  • "boxed error" return types (like Rust, Haskell, others). Requires syntax and support for "proper" types.
  • condition handlers (exceptions, or generic "signals" as in Common Lisp / R). Fairly easy to implement here.

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

No branches or pull requests

1 participant