Re:Show HN: FP-pack – Functional pipelines in TypeScript wit...
by superlucky84 on Saturday January 03, 2026 @03:19PM
(#46481103)
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.
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.