Arc Forumnew | comments | leaders | submitlogin
2 points by shader 3411 days ago | link | parent

Mind if I ask what the stream argument could be used for?

1 point by pg 3410 days ago | link

You could for example write to a file or string if you were debugging.


1 point by shader 3410 days ago | link

If it's for debugging, wouldn't it be easier if you just left it going to standard out? That way you could run it on the repl and see the output, and still wrap it in 'tostring or w/outfile if you wanted it to go to a string or file instead.

Maybe the stream argument could be made optional, and default do stdout? The redundancy would still exist, but it would allow us to use it both ways.