4 ms·
I think this may also be a good way to separate libraries from application code, by considering the library as another actor instead of a direct function call.
by pca006132 4y ago
I think this may also be a good way to separate libraries from application code, by considering the library as another actor instead of a direct function call. We are allowed to panic within the same abstraction layer (application or in a library), but panic should not cause another application using it to abort, there should be a way to let the application recover from it and decide whether to cancel the operation or do other actions. If the mutable states are not shared and execution can be recorded, we can just restart the library after abort and resume to the previous state.
- nine_k 4y agoThis description makes me immediately think of Erlang (and Elixir).