Handle runtime errors in REPL
Open
4.1. repl
- Dominant language
- OCaml
- Stars
- 45
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
When runtime error occurs during execution of a REPL command, the whole interpreter fails and exits immediately. For instance:
```
$ dbl
> assert False ;;
: Unit
runtime error at :1:
Assertion failed!
$
```
Runtime errors could be handled in a REPL in order to restore the last valid state. However, due to presence of effect handlers, it is not a trivial task. Maybe some ideas from #130 might be useful.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.