Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

I'm curious about why in the 3 pipeline* functions in core.async, the to argument is expected before the from argument. Looks like originally, with the pipe function, the order was the opposite, but when the pipeline functions where added, there was a reason to swap the order.

There is also a todo on the code to change arguments order for pipe:
https://github.com/clojure/core.async/blob/39488d33b4933ef3eb4c4aac485ad21ac3c78825/src/main/clojure/clojure/core/async.clj#L574

1 Answer

+1 vote
by
selected by
 
Best answer

Iirc, the idea was to match into.

...