3 ms·
I agree! I even pointed this out in my comment, but perhaps not clearly :) I think that the way it's done is a net-positive in designing cleaner APIs, but ther
by ollien 4y ago
I agree! I even pointed this out in my comment, but perhaps not clearly :)
I think that the way it's done is a net-positive in designing cleaner APIs, but there are times when I've already done a pipeline, and storing the output is just the last step. This last step is just frustratingly, not always possible. I don't think one should do something like the above, it's just what you must resort to if you _did_ want to do it.
- sph 4y agoThere is nothing wrong with doing data = this |> is |> a |> pipeline save_to_file(file, data) Instead of trying to put the call to save_to_file into the pipeline by wrapping it in a closure.