functional-programming icon indicating copy to clipboard operation
functional-programming copied to clipboard

Function that returns an error can be pure

Open SHND opened this issue 1 year ago • 2 comments

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.

SHND avatar Aug 09 '22 06:08 SHND

Hey @SHND could you point me to the line?

enricopolanski avatar Jan 14 '23 15:01 enricopolanski

https://github.com/enricopolanski/functional-programming/blob/d741a9dc11303f4065401a43ceef7a85461372e7/README.md?plain=1#L2299

SHND avatar Jan 23 '23 05:01 SHND