Newbie Questions on Effects, Either vs. Result, and Functional Programming Paradigms
Hi everyone, I am a newbie with effect and I have some questions:
1. Should everything be an effect? What I mean is that I can't figure out what exactly an effect is, why use it instead of composing functions with
pipe
pipe
with the help of Options and Eithers to handle errors as values instead of exceptions and so on. 2. What's the difference between an either and a result, they look the same to me, they have a success value and an error one, but are called differently. 3. Should the functional programming paradigm avoid throwing exceptions and treat them as values to be managed later? If so why does combining Options with Effects generate an exception to be caught afterwards and not an Effect.fail value? 3. If I don't have any async code but i just wanna define a function with flow or pipe, should i turn it into an Effect type?