3 ms·
By definition anything that communicates with a db is not pure. So kinda useless term for endpoint handlers.
by papichulo2023 2y ago
By definition anything that communicates with a db is not pure. So kinda useless term for endpoint handlers.
- jy14898 2y agoA function doesn't need to be impure to communicate with a db. It can describe the actions without executing them, returning the actions to let some other impure process execute the effects.
- WJW 2y agoThe function itself hardly communicates with the db then, does it? In your example it's the impure process that does all the actual communicating.
- nixpulvis 2y agoThat's kinda my point.