8000 Does state name passing with parameter on event make sense? · Issue #324 · aasm/aasm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Does state name passing with parameter on event make sense?  #324
Open
@youroff

Description

@youroff

What's the reason in passing desired state name when calling the event with parameters? As far as I understand the idea behind finite state machines, event should unambiguously set what state it will end at. We have guards to implement conditional transitions etc, so why there's a first parameter? I think that api would be cleaner if we could pass arbitrary parameters for callbacks.

Is there a use-case I don't see right now?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0