chapel icon indicating copy to clipboard operation
chapel copied to clipboard

add optional fileWriter parameters to ChapelIO.write*

Open milthorpe opened this issue 1 year ago • 2 comments

Fixes #24107 by adding overloads or optional parameters to each of the ChapelIO.write* procs to support writing to a fileWriter other than stdout. This allows user code to call e.g. writeln(IO.stderr, ...) to write to stderr without exception handling code.

Note: this PR doesn't yet have tests; I couldn't work out where to put them as I couldn't find any specific tests for ChapelIO.write*. (These procedures are so fundamental that they're used in almost every test anyway!) I'm happy to write some tests if the Chapel team will tell me the best place for them.

milthorpe avatar Dec 20 '23 11:12 milthorpe