6 ms·
That’s a fair point, and I agree. The SideEffect pattern is intentionally explicit, so without fp-pack context it can look unfamiliar at first. The trade-off i
by superlucky84 9mo ago
That’s a fair point, and I agree.
The SideEffect pattern is intentionally explicit, so without fp-pack context it can look unfamiliar at first.
The trade-off is making early exits visible in the code, rather than hiding them in conditionals or exceptions.
In practice, most code stays in plain pipe/pipeAsync.
SideEffect is meant for a small number of boundary cases only.
And I agree — better language-level syntax for this kind of pattern would make it much easier to adopt.