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

Function that returns an error can be pure #40

Open
SHND opened this issue Aug 9, 2022 · 2 comments
Open

Function that returns an error can be pure #40

SHND opened this issue Aug 9, 2022 · 2 comments

Comments

@SHND
Copy link
Contributor

SHND commented Aug 9, 2022

Instead of

A function that returns errors or throws exceptions is an example of a partial function.

Maybe we should remove the returns error part:

A function that throws exceptions is an example of a partial function.

If a function returns an error it may still be pure.

@enricopolanski
Copy link
Owner

Hey @SHND could you point me to the line?

@SHND
Copy link
Contributor Author

SHND commented Jan 23, 2023

A function that returns errors or throws exceptions is an example of a partial function.

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