[swift-evolution] pitch: Unified libc import (again)

Brent Royal-Gordon brent at architechies.com
Fri Aug 18 01:39:10 CDT 2017


> On Aug 17, 2017, at 8:20 PM, Xiaodi Wu via swift-evolution <swift-evolution at 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
Architechies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170817/9787519a/attachment.html>


More information about the swift-evolution mailing list