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.
Given this code:
Stealth could execute the first arm if either
:yesor:maybeare specified. Both would still map to the alpha literalAthough. But this way, a developer can specify multiple replies that map to a singleprocmaking theirhandle_messagemore DRY.