Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Array types in handle_message #268

Open
mgomes opened this issue Sep 1, 2020 · 0 comments
Open

Add support for Array types in handle_message #268

mgomes opened this issue Sep 1, 2020 · 0 comments

Comments

@mgomes
Copy link
Member

mgomes commented Sep 1, 2020

Given this code:

handle_message(
  [:yes, :maybe] => proc { step_to state: :proceed }
  :no => proc { step_to state: :goodbye } 
)

Stealth could execute the first arm if either :yes or :maybe are specified. Both would still map to the alpha literal A though. But this way, a developer can specify multiple replies that map to a single proc making their handle_message more DRY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant