With specs:
(combine-output-ports聽what聽. with)聽鈫捖爋utput-port?
what聽:聽output-port?
with聽:聽list of output-port?
As example it very useful in this case:
(with-logging-to-port ((combine-output-ports
(current-error-port)
(open-output-file "my.log"))
MY-SYNTAX
)
Procedure make-output-port is too unfriendly for this purposes.
I wonder why such procedure isn't already exists in racket/port package.
I agree that such a function would be useful to have in racket/port, but in the meantime, it might help you to look at make-pipe and copy-port, which together make an implementation of this function pretty easy since copy-port accepts multiple output ports.
Unless @EligiusSantori wants to, I could implement this as my first contribution to racket :)
Seems straightforward.
Closed by #2726
Most helpful comment
Unless @EligiusSantori wants to, I could implement this as my first contribution to racket :)
Seems straightforward.