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

Enforce all actions to have a return value of Response #14

Open
MTDdk opened this issue Sep 10, 2015 · 0 comments
Open

Enforce all actions to have a return value of Response #14

MTDdk opened this issue Sep 10, 2015 · 0 comments

Comments

@MTDdk
Copy link
Owner

MTDdk commented Sep 10, 2015

Currently when constructing actions developers needs to have the state of the response in mind at all times including eventual errors that might occur during execution.

This seriously makes the actions prone to errors or unwanted responses as it is not explicitly clear what and how the response is built.

By enforcing return values from actions, no response is implicit.
If 'void' is considered to be a valid return type, then a response 200 might be okay.
However, an enforced return value of 'Response' will also let the framework indicate, that a method actually is an action.

If the above is implemented it would also take of issue #13

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