2 ms·
> Neither seems very good to me, and the |> version doesn't really seem "less bad". For me the piped version seems way better, way cleaner, with cleanly separa
by scotty79 4y ago
> Neither seems very good to me, and the |> version doesn't really seem "less bad".
For me the piped version seems way better, way cleaner, with cleanly separated processing steps.
I don't like nested steps because for nesting multiple arguments functions your expression tends to grow in both directions and parts belonging to the same step tend to end up really far from one another and clearly distingushes them from data that's pushed through the pipeline.
% is short so it keeps parts of the same processing step together.
This syntax also enables you to express which part is the data to be processed, what are the processing steps and what are additional parameters of the processing steps.