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

Exported functions API #4

Open
TBPixel opened this issue Sep 24, 2019 · 1 comment
Open

Exported functions API #4

TBPixel opened this issue Sep 24, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@TBPixel
Copy link
Owner

TBPixel commented Sep 24, 2019

ffsm should provide a fully exported functional API. This API could allow users to write and use state machines with function-call syntax instead of method-call.

@TBPixel TBPixel added the enhancement New feature or request label Sep 24, 2019
@TBPixel
Copy link
Owner Author

TBPixel commented Oct 1, 2019

After thinking this one over, I feel like it's both not a worthwhile change and introduces some serious questions about maintainability.

Most notably, the only 2 ways I can think to persist a state machine while using a functional only API to mutate the state are to return a new state machine (creating an inconsistent API) or to keep track of the state machine in global memory, which I personally think will introduce serious headaches down the road.

As a result, I think this is best saved for an API change, perhaps as part of 0.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant