p-e-w/savage

Ability to cancel evaluations in REPL

Opened this issue · 0 comments

p-e-w commented

The welcome message promises that this will happen when you press Ctrl+C, but that isn't actually implemented yet.

The plan is to spin off a subprocess that does the evaluation, and kill that process when the user cancels. Turning evaluate into an async fn isn't possible, because functionality like integer multiplication is provided by the num crate as synchronous functions.