Simplify pattern matching, remove `others`
Add new unexpected message handler to actors that centralizes how actors deal with messages that are not handled in their current behavior. This obsoletes the previous approach of cluttering the code base with `others >>` handlers. Relates #444. Also relates #446, since the new interface uses `type_erased_tuple` and is a first step towards removing `message` from the interface of actors entirely. Removing `others` as well as the "advanced pattern matching syntax" from CAF opens up design space, allows for several optimizations, and improves compatibility to MSVC.
Showing
This diff is collapsed.
Please register or sign in to comment