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

Ambiguity hooking syntax #702

Closed
StoneCypher opened this issue May 4, 2022 · 1 comment
Closed

Ambiguity hooking syntax #702

StoneCypher opened this issue May 4, 2022 · 1 comment

Comments

@StoneCypher
Copy link
Owner

StoneCypher commented May 4, 2022

for the machine

a 'foo' => b;

I need to hook both transition and action, which is gross. I should have the ability to hook anything which both exits a and enters b irrespective of path.

It may be that the default hook should be this, instead of what it is now, and to hook just the path with no action, you should action hook with false, instead. Alternately, hook_bare or something. More thought is required.

Blocks #255

@StoneCypher StoneCypher added this to the Hooks milestone May 4, 2022
@StoneCypher
Copy link
Owner Author

This is now do-able with .hook_transition (or .hook_entry, .hook_exit or a bunch of other stuff)

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