quint icon indicating copy to clipboard operation
quint copied to clipboard

Use `Either` instead of `Option` in `RuntimeValue`

Open konnov opened this issue 1 year ago • 0 comments

RuntimeValue returns plenty of none() values, e.g.:

https://github.com/informalsystems/quint/blob/be8bb62dbc046da134d07f44367c4a60970adb45/quint/src/runtime/impl/runtimeValue.ts#L1330-L1354

We are losing an opportunity to explain what kind of error has happened. If we switch to Either, we can provide better feedback in the simulator/REPL.

konnov avatar Jul 19 '23 09:07 konnov