> On Aug 17, 2017, at 8:20 PM, Xiaodi Wu via swift-evolution 
> <swift-evolution@swift.org> wrote:
> * stderr should go wherever stdin and stdout go. Since it’d be silly for a 
> function like `print(_:separator:terminator:)` or 
> `readLine(strippingNewline:)` to live anywhere but the standard library, then 
> it stands to reason that the stderr version should also live in the standard 
> library.
> FWIW, FileHandle.standardInput, FileHandle.standardError, 
> FileHandle.standardOutput, and FileHandle.nullDevice all live in Foundation.

And, since they're read-only, are fundamentally incompatible with 
`print(…to:)`, which requires its `output` parameter to be passed `inout`.

Brent Royal-Gordon

swift-evolution mailing list

Reply via email to