Earlier quoted context omitted.
> The intermediary names are extremely relevant to the next poor sucker who has to understand what you were trying to do. I just don't think that this is always true. Consider: const highestScore = players |> filter(x => x.isAlive) |> map(x => x.score) |> tryMax I don't see how this is better: const alivePlayers = filter(x => x.isAlive)(players); const scoresOfalivePlayers = map(x => x.score)(alivePlayers); const hig…
> I don't see how this is better Case in point: > you can add helpful comments to pipeline code if needed The pipeline with explanatory variables explain to you what the steps are with code . Using pipeline you need to add comments to explain "what" you are doing.
const activePlayers =
players
|> filter(x => x.isAlive)
const highestScore =
activePlayers
|> map(x => x.score)
|> tryMax
In any case, I don't see how being restricted to always using an intermediary variable for every step is an advantage.