-
Notifications
You must be signed in to change notification settings - Fork 62
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
"index out of bounds" error shouldn't exit REPL #138
Comments
Part of the problem is that some of our primitives have a single implementation that runs in a different monad depending on the backend ( |
Can we use some sort of error-tracking monad instead of |
A simpler idea, that would require less change to the simulator(s), would be to have errors in the simulator throw a new type of Thoughts? |
I would take that one step farther and say that even totally unrecoverable things could use some custom exception so that we can give good error messages, even if we can't otherwise recover. Also, @kwf has been giving some thought to this topic, and I'd be interested in their input. |
This specific case no longer causes the REPL to exit (and I think many other failures should be fixed along with that). I think #870 captures the remaining work to be done. |
For example:
The REPL then exits to the command prompt. It should instead return to the REPL prompt.
The text was updated successfully, but these errors were encountered: