enricopolanski / functional-programming

Introduction to Functional Programming using TypeScript and fp-ts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function that returns an error can be pure

SHND opened this issue · comments

commented

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?

commented

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