functional-programming
functional-programming copied to clipboard
Function that returns an error can be pure
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.
Hey @SHND could you point me to the line?
https://github.com/enricopolanski/functional-programming/blob/d741a9dc11303f4065401a43ceef7a85461372e7/README.md?plain=1#L2299