fram-lang / fram-lang/dbl

Handle runtime errors in REPL

Open
#252 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.