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

Functions - Error Handling Is One Thing #23

Open
jnguyen095 opened this issue Jul 5, 2017 · 0 comments
Open

Functions - Error Handling Is One Thing #23

jnguyen095 opened this issue Jul 5, 2017 · 0 comments

Comments

@jnguyen095
Copy link
Owner

Functions should do one thing. Error handing is one thing. Thus, a function that handles
errors should do nothing else. This implies (as in the example above) that if the keyword
try exists in a function, it should be the very first word in the function and that there
should be nothing after the catch/finally blocks.

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