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

Available Affordances? #83

Closed
ambsw-technology opened this issue Oct 2, 2017 · 2 comments
Closed

Available Affordances? #83

ambsw-technology opened this issue Oct 2, 2017 · 2 comments

Comments

@ambsw-technology
Copy link

A true RESTful interface (i.e. following HATEOAS) can often (always?) be efficiently modeled as a state machine. To do so, the links/actions section is populated based on the available state transitions (i.e. affordances).

There's a certain symmetry between real life and an FSM with a hidden state, but it makes the calculation of affordances especially difficult. Is the package specialized for a different use case (e.g. embedded programming)? or does a method listing affordances make sense?

@glyph
Copy link
Owner

glyph commented Nov 12, 2017

The problem here is the method would need to have a huge list of sophisticated interactions with the type system, because inputs can take parameters and return values. How to properly express which methods are callable? How to express them if some are private, but re-exposed through a public interface that produces multiple inputs? This might be a good idea but it would need to be very carefully thought through.

@glyph
Copy link
Owner

glyph commented Jun 12, 2022

Closing this because it's somewhat unclear how to make progress on this as a feature. Please feel free to open a new issue with a more precise description.

@glyph glyph closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants